Saturday, October 14, 2023
HomeiOS Developmentjavascript - OAuth inside PWA in iOS takes you out of PWA...

javascript – OAuth inside PWA in iOS takes you out of PWA and in to Safari


I’ve created a service which depends on the person logging in with their Patreon account. If their pledge is > X they get entry to unique content material. This works. Yey! However whenever you add the positioning to your house display on iOS and open it from the house display this occurs:

  1. The person hits the “Log in with Patreon” hyperlink
  2. If the person has the Patreon app put in, iOS opens this app for authentication. If not you are despatched to Safari.
  3. Both method you are despatched to Safari after login because the callback URL from Patreon is an internet web page.

Here is a display seize as an example the issue.

Is there a workaround with this? I’ve tried utilizing popup screens for the OAuth to maintain the whole lot in the identical website and shutting it when authentication is completed, however the popup cannot be closed programmatically when it is inside a PWA.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments