Comments (3)
for newer versions of Android just use this plugin https://github.com/NeoLSN/cordova-plugin-android-permissions , request / check for the ACCESS_COARSE / FINE permission & in the success callback start the scan. It worked for me @ SDK 25
from wifiwizard.
In my ionic2 project:
AndroidManifest.xml I used:
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
project.properties I used:
target=android-23
I can permit ACCESS_COARSE_LOCATION.
No authorization dialog box is displayed in other cases.
from wifiwizard.
For Android6.0(SDK >= 23), they have changed the permissions model, now you have to ask permissions manually inside the app as far I know - uses-permission doesn't do anything.
As far I understand, the reason why it works is that you're compiling against targetSdkVersion="22" (Android <= 5.1) which has backwards compability with newer androids as well. If you use that SDK version, your app will have those permissions by default.
You can get the same effect if you add this line to config.xml:
<preference name="android-targetSdkVersion" value="22"/>
from wifiwizard.
Related Issues (20)
- Uncaught ReferenceError: WifiWizard is not defined at wifiservice.js:46 HOT 1
- function WifiWizard.formatWPAConfig, free wifi
- connectNetwork(ssid,win,fail) is supported on IOS ?
- Unable to connect to open networks... HOT 1
- Ionic 2 - Error: Uncaught (in promise): ReferenceError: WifiWizard is not defined ReferenceError HOT 1
- Plugin name mismatch HOT 2
- Support iOS 11 wifi connection capability HOT 4
- getCurrentSSID on android adds extra quotes on ssid return value HOT 1
- This repo is dead again ? HOT 8
- iOS Support - Use this plugin
- Invalid Version HOT 1
- WiFiWizard2 - My fork with fixes, updates, and new features HOT 6
- password stored
- WifiWizard.connectNetwork() still always calls win callback. Any fix ? HOT 1
- WifiWizard not work in IOS HOT 1
- password not set on WifiWizard.addNetwork
- Plugin uses two different name HOT 1
- Can we update the timeout on Android?
- Cannot read property 'getCurrentSSID' of undefined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifiwizard.