Page 1 of 1

Can't get URL [Solved]

Posted: Fri Jan 22, 2016 7:47 am
by Jellobus
Hi all,

I experimenting get url function. It is working as expected in Android and desktop platforms but it doesn't get any url in iOS. It only shows blank. here is my code..if it's a bug what LC version would be better option?

Tested device: iphone 5
xcode 7.1.1
LC 6.7.8

Code: Select all

on mouseUp
   local tURL, pConnectivity
   put url "http://www.google.com" into tURL
   if tURL is empty then
      put false into pConnectivity---no connection
   else
      put true into pConnectivity--connected
   end if
   answer pConnectivity
end mouseUp
Cheers,

Louis

Re: Can't get URL

Posted: Fri Jan 22, 2016 10:53 am
by Dixie

Code: Select all

on mouseUp
   put "http://www.google.com" into tURL
   put URL tURL into testTemp
   if testTemp is empty then
      put "No Internet Connection"
   else
      put "Connected"
   end if
end mouseUp

Re: Can't get URL

Posted: Fri Jan 22, 2016 10:56 am
by LCNeil
Hi Louis,

Starting with iOS 9, Apple no longer allows direct access to non HTTPS URL requests. You will either have to use an HTTPS link or check the "Disable ATS" checkbox that is present in the iOS Standalone Application settings.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

Re: Can't get URL

Posted: Sat Jan 23, 2016 7:03 am
by Jellobus
Hi Dixie and Neil,

Got it! thanks a lot for your help.

Cheers,

Louis