Code Monkey home page Code Monkey logo

Comments (3)

fjgal avatar fjgal commented on July 30, 2024 1

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.

vipero07 avatar vipero07 commented on July 30, 2024 1

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.

vipero07 avatar vipero07 commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.