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 get a login page to appear if the account hasn't been logged in? #17

Open
sikfreeze opened this issue Feb 27, 2014 · 2 comments
Open

Comments

@sikfreeze
Copy link

I've added In-App billing function to my application using your ANE. The flow for the purchases when the users have already been logged-in to their account on their phones are working fine. However, if they haven't been logged in to their account prior to the app initialization, they will only get purchase failure. Is it possible to get the log in page to appear so that they can continue with their purchases?

@pozirk
Copy link
Owner

pozirk commented Feb 27, 2014

ANE behaves the same way as Android In-App written in Java, so read docs.

@lzaiats
Copy link

lzaiats commented May 29, 2014

@sikfreeze I handled the InAppPurchaseEvent.INIT_ERROR and used a boolean that controls if the phone has a Google Account on it or not... When the user try to buy something, i verify this boolean and if its false I show an alert saying: "You must have a Google Account associated with this device before trying to buy any in app purchase!"... Also, it's a good practice to have a hook on nativeApplication for the flash.events.Event.ACTIVATE and call the InAppPurchase.init() again, just in case the user switch to Settings, add an account and return to your app! Good luck!

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