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

How to notify user that pending purchase was completed? #425

Closed
jasonfisherjlf opened this issue Nov 10, 2021 · 2 comments
Closed

How to notify user that pending purchase was completed? #425

jasonfisherjlf opened this issue Nov 10, 2021 · 2 comments

Comments

@jasonfisherjlf
Copy link

I am new to xamarin, but have most of your (absolutely wonderful) plugin working in my test app. The thing I can't figure out is how to write code that will notify the user of a pending purchase that completes/resolves while the app is running. The code for implementing this for OnStart() and OnResume() seems simple enough, but notifying the user while the app is already running is stumping me.

I can see that there is a "OnPurchasesUpdated" listener set up that I assume handles this, but I have no idea how to write code to utilize it in the event that such a notification does come though. How would you do this? I was thinking just a simple pop up to the user to notify them that their purchase is no longer pending would suffice.

@jasonfisherjlf
Copy link
Author

I poked around some more and came across this comment by @jamesmontemagno: #384 (comment)

Unfortunately, it doesn't make any sense to me how exactly I am supposed to use that listener. I am completely lost as to how to setup and assign the callback for that listener...

@jamesmontemagno
Copy link
Owner

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

2 participants