Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sign_in_with_apple] Sign in with Apple not working on mobile web browsers in Flutter #431

Open
Pedro-one opened this issue Aug 13, 2024 · 4 comments

Comments

@Pedro-one
Copy link

I'm facing an issue with the "Sign in with Apple" feature in my Flutter web application. The sign-in process works fine on desktop browsers, but it fails when accessed through mobile web browsers.

In the case of Chrome it does login but you have to refresh the page to access the app, in other cases like Safari it just fails silently. I do suspect that the problem has to do with the sign in pop up not redirecting you correctly because checking out other platforms like Twitter they have a custom flow that doesn´t make that pop up appear.

I've searched for solutions, but there's very little information available on this specific problem.

Thank you in advance for your help!

@tp
Copy link
Collaborator

tp commented Aug 21, 2024

While I don't have a Flutter for web project in production (thus getting feedback for the behavior of a lot of users), I tested the plugin's example successfully in the browser.

Are you sure it's not a misconfiguration of the redirect domain? The screen sadly would not show a detailed error message (useful for a developer), but since the pop-up opens, that's usually the culprit (as there is not much one can to wrong, argument wise). (I would think a wrong redirect domain would error beforehand already though, not letting you choose the account, but I am not 100% clear whether that is true or whether indeed it's only checked at the end and thus could lead to an error like the one shown above. Just checked with a popular Flutter-web app using SiwA, and when modifying the redirect URL there to something invalid, it still shows the account picker first.)

@tp tp closed this as completed Aug 21, 2024
@tp tp reopened this Aug 21, 2024
@akaabe
Copy link

akaabe commented Nov 7, 2024

Seems that js promise never completed with success. Only if you close pop up it will fail.

Can Apple JS that is included in index.html change? It points to latest version?

@tp
Copy link
Collaborator

tp commented Nov 8, 2024

Seems that js promise never completed with success.

In the success case that worked fine for me. I would expect a misconfigured domain again if it doesn't fire.

@akaabe
Copy link

akaabe commented Nov 8, 2024

Yes. It was wrong configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants