Cannot find name 'WifiWizard2'



I’m trying to use the plugin WifiWizard2.

I added the plugin to my project by writing "ionic cordova plugin add wifiwizard2’ in the terminal. According to, there are muliple global functions, but when I write for instance WifiWizard2.getConnectedSSID(), I get the error Cannot find name ‘WifiWizard2’.

Does someone know what’s wrong?


kindly share with us the ts file content.

Best Regards


any updates ? where did you reach with the project?


Hi, i’m trying same use of WifiWizard2… have you found a solution ?
How you import it ? there’s no sample code… :frowning:


Here’s a sample of code using wifiwizard2 scan function

import { Component } from '@angular/core';

declare var WifiWizard2: any;

    selector: 'app-home',
    templateUrl: '',
    styleUrls: [''],
export class HomePage {
    results = [];
    info_txt = "";
    async getNetworks() {
    this.info_txt = "loading...";
    try {
        let results = await WifiWizard2.scan();
        this.results = results;
        this.info_txt = "";
    } catch (error) {
        this.info_txt = error;