Open Mkohm opened 1 month ago
Hi @Mkohm, first of all forgive me for taking so long to reply to you, I'm having a very busy day due to work and personal life and I end up forgetting that the package is on my personal github.
Now about your question, I was also in doubt and did some research, so let's go:
the behavior you described about the Wi-Fi network no longer being available after leaving the app may be related to how the connection is being managed specifically for Android 10 (API 29) and above.
the Wi-Fi network is only being linked to your application's process. This is fine for IoT devices, where the connection can be temporary (at the company I work for I use it this way) and specific to a communication session between hardware and application. However, for a normal router, you want the Wi-Fi connection to persist and be available to the whole device, not just your application as I understand it. For this to be possible, I believe I would have to make changes to the package in order to fulfill your request. For now I would advise you to look for another package or fork mine and make changes according to your needs (I'm sorry I couldn't solve your problem at the moment).
I figured out a solution using the wifi_iot plugin :) Small plugins like this is super handy when you don't want to spend a lot of time investigating and figuring out how to do it yourself - I would gladly pay a few bucks (or my company would) to save some development time.
@Mkohm I'm glad to hear you managed to use another lib, I use wifi_iot where I work for another purpose too.
@Mkohm If you want something more refined, a code for your company to do this part of the IOT, I can recommend a good friend of mine who worked with me and is currently out of work. His name is Gabriel and he is very good technically and would certainly help you a lot with this part of Kotlin that you need.
I'll leave you his github and his linkedin in case you're interested. github -> https://github.com/gabrcastro Linkedin -> https://www.linkedin.com/in/gabrielsouzacastro/
I am connecting to an access point with internet using
await PluginWifiConnect.connectToSecureNetwork(wifiName, wifiPassword, saveNetwork: true)
. In the settings it shows "Available via my app name", and the network is not available anymore after quitting the app. This would probably make sense if I were connecting to some kind of IOT device, but in my case it isn't. I want to connect to a normal router.This seems like a bug?