Open mdrideout opened 5 years ago
This issue isn't new (although I think it was fixed and is now broken again).
You can work around this by using the "popup" flow if the window is in standalone mode:
{
// ...
signInFlow: ("matchMedia" in window && window.matchMedia('(display-mode: standalone)').matches)
? "popup" : "redirect",
}
just to confirm that I can still reproduce it and that with "popup" works well
Can also confirm that I can still reproduce this bug, and the popup solution also still works.
+1
@mdrideout How do you solved it? I am exactly at your point now. Everything works fine until I install the PWA on Android and try to login in chrome.
If i start the authentication process from the browser (with an installed PWA), then the browser is opening the PWA to login from there. We get the error message "Unable to process request due to missing initial state..." Also, the successfull login is not transfered back to the browser.
Seems logical for me, cause the initial state was not defined by the PWA App — it was started by the browser. So I would think, I should prevent the auth process from opening the PWA App. Maybe there is a setting for this?
How to solve this?
Also a popup is not a solution, cause popups are blocked on some devices and browsers like iPads.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
This is similar to issue #221 but different, because the login flow breaks in chrome if the PWA is installed.
Steps to reproduce:
Update
credentialHelper: firebaseui.auth.CredentialHelper.GOOGLE_YOLO
to use the defaultRelevant Code: