-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wifiwizard is added to my config and package.json file but I can't find the import in my module.ts file #69
Comments
This plugin does not have @ionic/native typings (yet), in order to use it add this to just below your import list on your service:
and then use the WifiWizard2 to invoke the function. |
I get: WifiWizard2 is not defined. |
i started a blank project and is still not working:
commands:
|
Try to use WifiWizard2 with capital W [Exactly as mentioned in my post] |
Still the same reference error. I tried all combinations. |
Try this : window.WifiWizard2 If that's doesn't work paste your code here. |
`import { Component } from '@angular/core'; // declare var WifiWizard2: any; @component({ export class Tab1Page {
} |
Are you sure the plugin is installed? |
when i run: |
@Crielz
Very happy to help anyone, good luck! |
Still not able to fetch methods of the wifiwizard plugin. Anyone that would like to share a blank project with the working plugin? |
@Crielz |
I think something went wrong when you pushed your project. Only .gitignore and License files. |
@Crielz are you testing this on a real device or in the browser?? |
home.ts
home.html
In addition, you need to pay attention to:
The method I am working on:
good luck |
When i run your project on an android device it works! thanks a lot for that. |
@Crielz |
Thanks a lot! @13546777510 and @saoron |
The link |
Does anyone have this example? |
Is this the one you are looking for? |
Prerequisites
Check all boxes if you have done the following:
Issue type
Select all that apply
Description
I'm using ionic framework. When I want to install the wifiwizard2 plugin I get no errors but i'm not able to use the plugin. The wifiwizard is added to my config and package.json file but I can't find the import in my module.ts file. Thanks in advance.
Steps to Reproduce
run
sudo cordova plugin add https://github.com/tripflex/wifiwizard2
run
sudo npm i cordova-plugin-wifiwizard2
orsudo ionic cordova plugin add cordova-plugin-wifiwizard2
[and so on...]
Expected behavior: Use the plugin
Actual behavior: cannot find import
Reproduces how often: 100%
Versions
Ionic:
ionic (Ionic CLI) : 4.10.3 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.1
@angular-devkit/build-angular : 0.13.6
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.6
@ionic/angular-toolkit : 1.4.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 4 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/nathancriel/Library/Android/sdk)
NodeJS : v10.15.1 (/usr/local/bin/node)
npm : 6.7.0
OS : macOS Mojave
Xcode : Xcode 10.1 Build version 10B61
Additional Information
config.xml
<plugin name="wifiwizard2" spec="git+https://github.com/tripflex/wifiwizard2.git" /
package.json
dependencies
"cordova-plugin-wifiwizard2": "git+https://github.com/tripflex/wifiwizard2.git",
The text was updated successfully, but these errors were encountered: