-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Connect smart speaker to open wifi #2263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Connect smart speaker to open wifi #2263
Conversation
|
I asked for access via my gmail account to the apk, thanks |
I have updated the link. Please check now. It won't ask for permission. Sorry for the inconvenience caused. |
|
@atm1504 same with the .apk from the zip. I unzipped it, downloaded it via dropbox to my phone, and tried to install it using x-plore (fs manager, I use often for isntalling apks). This is Android 9, Huawei Mate 10 Pro. |
|
@norbusan What failed while installing? |
|
@iamareebjamal How can I know? It starts installing, and then sqitches to a screen "Installation has failed" ... |
|
@atm1504 Have you given unsigned APK? |
No |
|
Hmmm, strange. Any tip how one can debug that? |
|
Can you please try out a different package installer other than the one you are using now. : ) |
|
Re-downloaded the zip, tried with Huawei's "Files", and then again with Firefox downloader ... all with the same effect. |
|
@atm1504 Come on, there is a single package manager on Android, there is no other option. You've got to know that Did you download and try installing yourself? |
Yes, I did so. It worked fine in both of the devices that I used. |
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of 75ce24f. Here's the output:
|
The build is failing✨ Good work on this PR so far! ✨ Unfortunately, the Circle CI build is failing as of c3cac80. Here's the output:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are suffering from fever, the doctor doesn't kill you to end the disease
|
The change in this PR has no relation to the issue it is solving |
I debugged the code. The error was mentioning about failing to connect because of clear text communication. Google search reveals that it occurs because of local connections. And we cannot use https in local, we always have http. To overcome this error, we need to take a special permission in manifest. That is what I added. Also, I faced similar issue in an app of my college and solved that in the same way. The app works on intranet of campus (http connection?) |
|
The error you mentioned only happens on P+ Android devices. Is it working on lower versions. Secondly, the solution is to whitelist IPs and not allow cleartext communication by default |
I did found the error in oreo also. Okk, so u mean what i should do is that only allow those particular ip's to have clear text communication, rather then allowing all. |
|
@iamareebjamal @batbrain7 @arundhati24 please review it. |
| <domain-config cleartextTrafficPermitted="true"> | ||
| <domain includeSubdomains="true">10.0.0.1:5000</domain> | ||
| <domain includeSubdomains="true">ipinfo.io</domain> | ||
| <domain includeSubdomains="true">api.duckduckgo.com</domain> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove last 2, replace with https
|
Have you now verified that it is working? |
|
@iamareebjamal I have tested this apk, after the change, it's working now. |
|
@iamareebjamal @batbrain7 @arundhati24 please review it. I cannot move further with pr #2267 until this is merged. : ) |
Fixes #1743
Fixes #2268
Changes:
Fixed the error that prevented the app to connect the smart speaker to open wifi.
Now users can connect to open wifi simply by clicking next in the wifi password prompt.
Screenshots for the change:
