26
Views
0
Comments
[Wifi Wizard Plugin] ReferenceError: WifiWizard2 is not defined
Question
wifi-wizard-plugin
Mobile icon
Forge asset by Miguel Antunes

Hi

Looks like the CheckWifiWizardPlugin fails when the plugin is not present with "ReferenceError: WifiWizard2 is not defined"

$parameters.IsAvailable = !!WifiWizard2;


Seeing for example the implementation of other plugins in the forge the main difference is to not trying to access to a variable just by itself but always use the object where it is registed in, even if it's the window or the navigator.

For example in the Camera plugin:

$parameters.IsAvailable = !!window.cordova && !!navigator.camera;


Regards,

João Rosado

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.