Comments (3)
Thanks @vipero07 for accepting my contribution and merging it so quickly!
Regarding permissions this is what I have so far and it is working fine on Android 8.1 and 11.0.
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
My understanding is that as long as we don't perform a wifi scan, or ask for the currently connected SSID (unless the connection was triggered by us. I think for the use case of IoT device pairing (which I believe it is also your use case) we will not need location permissions.
Please tag me once you publish a new version in pub.dev, in the meantime I'm referencing the commit hash.
from flutter_wifi_connect.
pub.dev has been updated to include your modifications.
On android pre 29 for it to connect to an ssid by prefix it does a wifi scan. So only in the case of having the exact ssid would it not require location permission. Unfortunately for me the device I'm dealing with is prefixed. However you are correct the other cases wouldn't require location permissions. Honestly it didn't occur to me. Thanks again for the insight.
from flutter_wifi_connect.
no need to discuss, I agree with your assessments. This was a quick prototype, so its nice to be able to move it forward. I plan on addressing some other issues I've come across, just been busy over the holiday season. Thanks a ton.
My only comment is regarding the location permissions on <29, I believe even with that change location permissions are still necessary due to the nature of connecting to alternative WIFI devices. However it would remove the requirement in the case of getSSID here https://github.com/HerbiaEra/flutter_wifi_connect/blob/6632122edb12b7293af596e7cd3e9c6fec5439f5/android/src/main/kotlin/com/weplenish/flutter_wifi_connect/FlutterWifiConnectPlugin.kt#L71 has i implemented it.
I'm sure you've noticed the primary reasons I didn't implement certain things in android is because there is no ability to implement them in iOS, so I've left a few things in limbo as a result.
from flutter_wifi_connect.
Related Issues (13)
- ios xcode12 compilation issues HOT 1
- compilation error HOT 5
- Is this packge still work in this mid year 2021 ? HOT 1
- Deprecated version of the Android embedding. HOT 1
- Compilation error.
- Execution failed for task ':flutter_wifi_connect:compileDebugKotlin'. HOT 1
- New Package HOT 1
- PlatformException HOT 1
- Library not ready to use? HOT 3
- Will not build on Android Studio HOT 13
- [Question] How to use the plugin effectively?
- flutter_wifi_connect
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 flutter_wifi_connect.