JS API login not working properly on iOS 7 devices Safari browser

I have a problem with the iPad Safari browser. It works great on desktop safaris, Chrome, and Firefox.

In any example on developer.linkedinlabs.com/jsapi-console, when I click the "Signin with LinkedIn" button, a new tab opens. The name โ€œProcessingโ€ is displayed on this tab, and then freezes.

If I switch to another tab and reactivate the Hang tab, it will then work and display the associated login window.

I have the same problem in my application. Hope someone can help solve this problem.

thanks

+6
source share
1 answer

According to this blog, this is a problem that started with iOS 5: JavaScript code on the background tabs is paused.

So, when you click "Login" and go to the second page, the first one has no way to return you, because the code is paused.

I tried putting the request in an iframe (to avoid this problem) using the place () method in IN.UI, but was unsuccessful.

You can confirm that this worked in older versions - I tried it on iPod Touch running iOS 4, and it works fine .: '(

+2
source

Source: https://habr.com/ru/post/970676/


All Articles