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

Attempt to present which is already presenting <PKPaymentAuthorizationViewController: 0x11e1f6a50> #48

Open
NawafKartr opened this issue Jun 12, 2022 · 2 comments

Comments

@NawafKartr
Copy link

Hi team

I'm trying to use the package to enable Apple Pay in our flutter app. Most of the time it works great, but usually an issue comes up where the Apple Pay dialogue is not presented, and the following error message is shown in the debug terminal:

Attempt to present <PKPaymentAuthorizationViewController: 0x12f0a2aa0> on <FlutterViewController: 0x109824400> (from <FlutterViewController: 0x109824400>) which is already presenting <PKPaymentAuthorizationViewController: 0x11e1f6a50>.

Is there a quick fix that we can use to force the view controller to close and re-open again?

Thanks

@Yasoury
Copy link

Yasoury commented Jul 4, 2022

same here
i tried to put a loading dialog before the method start but when this problem accure it hide the dialog like every thing is good and the user can't re open apple pay or even the card payment dialog

the only fix is to close the app and then re open it

@mualgo
Copy link

mualgo commented Sep 7, 2023

I have almost the same issue with the IOS device. Open the Pay card or Apple Pay dialog once or twice. After that give the same error. If anyone has the same and knows the best solution kindly share.

Attempt to present <PKPaymentAuthorizationViewController: 0x125a26640> on <FlutterViewController: 0x11e01d200> (from <FlutterViewController: 0x11e01d200>) which is already presenting <PKPaymentAuthorizationViewController: 0x11ddc5a60>.

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