[Wifi Wizard Plugin] ReferenceError: WifiWizard2 is not defined

Forge Component
Published on 2019-02-22 by Miguel 'Kelter' Antunes
2 votes
Published on 2019-02-22 by Miguel 'Kelter' Antunes


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;


João Rosado