I use the code below to create a simple facebook like button. Obviously, its not working now in iOS 9. Is the problem using “socket” library to check for internet connectivity? Does socket use only “http” wich will fail ATS requirments? Or should I whitelist connections? Do I whitelist “google.com” & “facebook.com”?
local test = socket.tcp() test:settimeout(1000) -- Set timeout to 1 second local testResult = test:connect("www.google.com", 80) -- Note that the test does not work if we put http:// in front if not(testResult == nil) then local systemPlatformName = system.getInfo( "platformName" ) local URL if( systemPlatformName == "iPhone OS" or systemPlatformName == "Mac OS X" ) then URL ="fb://profile/1573199902921487" elseif( systemPlatformName == "Android" or systemPlatformName == "Win") then URL ="fb://page/1573199902921487" else URL ="https://www.facebook.com/IckityGames/" end if(not system.openURL( URL )) then system.openURL("https://www.facebook.com/IckityGames/") end else