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

Dealing with no internet situation #85

Open
gilamran opened this issue Aug 29, 2017 · 2 comments
Open

Dealing with no internet situation #85

gilamran opened this issue Aug 29, 2017 · 2 comments

Comments

@gilamran
Copy link

Hi,
What is the best practices regarding in-app-purchases and internet issues?
Should I listen to network availability?
Should I init the library only if there's internet available?
Should I re-init if the network was disconnected and reconnected?

I'm shooting in the dark here, would really appreciate your knowledge.
Thanks!

@spikything
Copy link

I was just thinking about the same situation. Probably want to look here for a way of checking for network availability:

https://forums.adobe.com/thread/884285

https://stackoverflow.com/questions/9671678/adobe-air-check-for-internet-connection

I haven't installed and tried the library yet, but assume it'll throw some exceptions when you initialise it with no internet available - will then need to prompt the user to check their internet connection.

@gilamran
Copy link
Author

gilamran commented Sep 3, 2017

While working on this, I found the init will fail if there's no internet (for the first load), and will not fail if the app was loaded (Google play cache), also it will not fail on getting the products... but fail purchasing.
Breaking the internet connection between purchase success, and consume will leave the product in a "user already bought this item" that we somehow have to understand...

All these off-line situations are not formalized and actually should work the same on all apps...

Anyone has a good workflow for these situations?

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