Can't get URL [Solved]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Can't get URL [Solved]

Post by Jellobus » Fri Jan 22, 2016 7:47 am

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
Last edited by Jellobus on Sat Jan 23, 2016 7:03 am, edited 1 time in total.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Can't get URL

Post by Dixie » Fri Jan 22, 2016 10:53 am

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

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Can't get URL

Post by LCNeil » Fri Jan 22, 2016 10:56 am

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
--

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: Can't get URL

Post by Jellobus » Sat Jan 23, 2016 7:03 am

Hi Dixie and Neil,

Got it! thanks a lot for your help.

Cheers,

Louis

Post Reply