Page 1 of 1

no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 7:50 am
by Bevan
Hi,
I have an app on both app stores, iOS and Android, same code on both platforms. The app on an android phone running 5.1.1 works fine. However newer model Android phones (not sure the android version) the app does not allow for the browser to go to any URLs. I don't have a later model to test just yet.

I have the app settings as having a minimum 4.1 Jelley Beans, The internet application permissions is selected.

One error message that was provided me to is the following :

'net::ERR_CLEARTEXT_NOT_PERMITTED'

Does anybody have any ideas on what could be causing the issue? I can't figure out why it would work on the older phone and not on a later model. I haven't updated the Android SDK in a long time, but I would think that would only apply for testing out latest builds. I am running Livecode 9.6.0 (dp 3).

Thanks,
Bevan.

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 7:56 am
by FourthWorld
I don't know for sure, but anything mentioning "clear text" is likely related to encryption.

Do you have the encryption components checked in the Standalone Builder?

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 8:47 am
by Bevan
I can't find any setting for encryption in the stand alone settings anywhere.

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 8:52 am
by LCMark
@Bevan: Try making sure you are using `https` URLs in your app - newer Android devices are secure-by-default which means they disallow access to HTTP urls (the same as iOS has done since iOS7 or so).

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 9:18 am
by FourthWorld
Thanks, Mark. That's what I was thinking with the encryption lib; hadn't occurred to me people might still be using http rather than https.

Does liburl depend on the encryption lib for ssl?

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 2:36 pm
by Bevan
Thanks @FourthWorld & @LCMark, I will try https on all links.

I just checked and it's doing strange things. facebook url with http & https works fine.

using http on another URL link doesn't work. I will try https.

Re: no internet on Android via Browser widget

Posted: Tue Apr 21, 2020 5:05 pm
by FourthWorld
When attempting to connect to Facebook via http it automatically upgrades the connection to https.

Many severs do, but not all.

Where https is needed it's a good idea to have the server force https.

Let us know how the switch to https works out on the URL you're still having trouble with.