Android Question in-app purchase dialog

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using in-app purchase's in my app and when I request the payment, it pops up with the Google Play dialog to ask the user for the payment.

However, is there a way to hide that dialog when the app closes ?

I am finding that when I request for the payment it shows the dialog but if I then close my app (before the payment is processed) it still shows the dialog and want it to hide the dialog if my app is closed.
 

aaronk

Well-Known Member
Licensed User
Longtime User
In B4A if I run my app, and then request the payment so the Google Play Payment dialog displays and then stop the B4A from running it still shows the Google Play Dialog.

I have also found if my app crashes (even running in release mode) the dialog keeps showing. I like it to hide the dialog so the user can't complete the purchase while my app is not open / running.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Is there a way if the app is still running ?
I don't think so. If the user has initiated an IAP, then I don't think there's anything you can do to stop it. Why do you want to stop someone making an IAP in your app?

- Colin.
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
Just thinking if the app has no visible activates for longer than 10 minutes to then hide the Google Play Payment dialog.
I don't understand. The IAP is initiated from an activity. Why would there be no visible activity if a user was trying to purchase something from within your app? Maybe if you can explain the scenario you're asking about someone might be able to offer a solution..

- Colin.
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
Another way I am finding.. If the user has the app open, requests the payment and then opens another app from the recent list I am finding the in-app purchase dialog stays open after they close the other app they opened and my app is no longer showing since it closes. (since I have made it close if it's not showing).

I guess it can't be hidden after it has been requested. Thanks for confirming.
 
Upvote 0
Top