12-05-2012 04:05 PM
Just curious how others are accomplishing this.
I have in-app purchases. If the user deletes the app, or gets a new phone or something, I'll need to check for previous purchases.
Should I be checking for previous purchases automatically on app startup, or should there be a button somewhere that a user can initate the check? I think in other platforms, the preferred approach may be the latter. At least from what I've heard. I don't see any guidelines for this for BlackBerry.
Although I haven't implemented it yet, I'm planning on doing the check at every app startup if I don't already have any an indication that the user has already purchased. This is a simple but if done in the main thread could impact starup performance if Purchase Manager isn't checking cache. I'm not sure how the Purchase Manager caching mechanism works.
Any comments on this would be very appreciated!
12-21-2012 01:40 AM
I have the same question. Can someone with some experience with in-app purchases help with this? thank you
12-21-2012 10:14 AM - edited 12-21-2012 10:19 AM
Exactly what i wanted to ask.
When you request existing purchases from payment manager via requestExistingPurchases(bool) method, if you set that bool to false, it will not ask user for credentials , it will just check cache on device, and if you set it to true, it will ask user for credentials and request data from server. I'm not sure what is going on during upgrade or reinstall of application, especially what will happen to database if app has one.
12-21-2012 10:39 AM
12-21-2012 10:55 AM
Yeah, i do nearly the same stuff, but my app use db, and i write that info in db. Problem is, that we cant test all that stuff right now, because procedure for testing IN app payments described here: http://supportforums.blackberry.com/t5/BlackBerry-
12-22-2012 08:55 AM
12-22-2012 12:47 PM
I tried that already, and is not working for me. I have my app in draft mode, and i go to settings, development mode, and enter id of my drafted app. I get page of my app, and when i press download, i get error saying "cant download, network error", but i have not any network error, i can download normal apps from AppWorld, without problems.
07-02-2013 08:29 AM
I am looking for an example how to detect a previous purchase.
When I watch the examples at github I find something like this: