WiFi Manager - some example more?

In where part can i put it? build.setting  config.lua???


 

we try to put into Main.lua but the smartphone dont ask to me nothing…

So we add “android.permission.ACCESS_WIFI_STATE”,  to build.setting but nothing

Dont ask and nothing, and the smartphone dont connect to the SSID that we want.

What can i do??  Can you send me a example of code?

With Android 6.0 you need to request permission in real-time meaning in code. 

See

https://docs.coronalabs.com/api/library/native/showPopup.html#requestapppermission

You would need to place this code where appropriate in code 

I updated the sample to help

https://github.com/scottrules44/wifiManager-demo/blob/master/main.lua

Ok, Thanks for your tips.

Now, we can get that some smartphone connect to the ssid that we need.
But we have some problem with others
For example wiht ZUK Z1 with Lineagos 14.1 - Android 7.1 -

If we connect a SSID without Internet, the conection is established, but cant move data, surf etc… until you answer at a pop up question that like :  This net wifi dont have conection to Internet, do you want to continue conect with this net wifi?  If you check in Yes you can surf, or move data, else nothing.
The problem is that this message only show when go to setting, net wifi, connect to wifi…
If connect with APP , this message never show and cant move data or surf.
 

With a Xiamoi M8 wiht MIUI10 - Android 8.1
Very similar. If you try to connect in a net wifi without internet. Show a pop up question, that show:  this net dont have internet access , do you want continue connect??
Cant move data or surf until answer this question… If pulse in yes, we can move data or surf with this wifi, else nothing.
But this Question dont show if we cant connect with the APP.

What can i do?

We cant upload images of it.