I am done developing an app. I added the ads banner and tested it, works great. The only thing I want to do is to have the customer buy the app, and when the customer buys the app it eliminates the adds. Also I would like to ass a button so the customer presses the button to buy the app, and once the customer buys the app that button also is eliminated. First app I have developed as I am still a newbie with android studio.
You would have to store whether the user has completed any purchases and upon loading, just don't show the ads if the user completed purchases. You would probably also have to add in a check to see if the user processed a refund.
An alternative would be to create a separate app with no ads whatsoever and put this up for purchase on the app store.
Related
I am using Ionic to develop an App, it will be ad-based, users can pay to remove ads. So I figured I can use in-app purchase, so when user clicks remove ads button, allow the user to pay for it. Now my question is, if the user uninstall the app, then re-install the app, how do I know he already paid for it?
I can think of two ways,
save the purchase information on phone. The problem is if the user uninstalls the app, all data are removed, so this won't work. (or maybe there is a way to save the data permanently, but what if he resets the phone?)
Is there a way for me to retrieve the purchase information from google and apple?
BTW, there is no backend server for my app.
[Edit] I looked at this plugin https://github.com/j3k0/cordova-plugin-purchase
Is store.refresh() the correct API to call? Are non consumable products purchases/transactions tracked in ios and android billing system forever?
Thanks
Thanks all for the help. It looks like the simplest way for me is to publish two versions, one paid version, and one free version.
Thanks
I've got an app that is almost ready for a closed beta test. This is the first app I've attempted to publish. For the app to demonstrate all its features some of the testers will need to subscribe to a feature locked behind an in app purchase. This will write a value to my database acknowledging that the feature has been bought, but also creates a couple of problems. The user purchases time during which the feature is unlocked, they can always purchase more.
On iOS any purchases that are made while part of a beta test are free. This means that a tester will be able to purchase as much time as they want, really loading up. When the test ends the purchases are supposed to be inaccessible because an app in TestFlight is treated as a different app to the same app released. However, both apps will look for the value in the same place in my database, meaning they will keep all purchases.
On Android any purchases, including the app itself, are made with the testers own money. However, I can offer promotional codes to gift them the app or in app purchases for free.
The problem is that to prevent iOS users from keeping all purchases I'll have to wipe the iap values from my database. I cannot distinguish between an iOS purchase and an Android purchase, so the Android purchases would be removed too. I would have to come up with some way to make sure Android testers do no purchase in app purchases with real money during the test, because that money would be lost to them. I would also have to manage some method for Android testers to receive the app and iap promo codes.
Is there any straightforward way to do this? Thanks.
I've been having issues adding a debit card to my main google account, so instead I logged in with a separate account and added the debit card to that second account.
Then, when I would try to do any sort of in-app purchase, it would only allow/show info for my main account. Even after uninstalling the app, switching to my secondary account, and reinstalling the app, going to the in-app purchase would just show payment methods for my main account, with no option to switch to my secondary account.
Okay, fine, so I take a drastic measure and just remove my main account all together. Now of course all my contacts are messed up, but no big deal. Finally, I can install the app and make the purchase. Payment successful.
So then I go back to add my main account back to my phone, and go into the app and it has a big friendly "You must upgrade!"
???????????????
I just upgraded! It said payment successful, I never uninstalled the app after purchasing it, etc. This is getting really frustrating, and looking at other solutions, none have worked for me so far. Someone elsewhere mentioned downloading the app from the web's play store, but I can't figure out how to go to the play store's website on my phone without having it just open the app.
How can i implement in-app purchases in my application?
I want to disable ads if the user paid me.
I spend a lot of hours to figure how it works by looking for tutorials.
I saw all the lectures on youtube about that.
I read on google developer site:http://developer.android.com/google/play/billing/billing_admin.html
I saw some example codes.
So,
I understood the concept
I know how:
1. create new product.
2. create a test account for testing.
3. publish my application to beta/alpha.
So,my question is:
What should I do in code?How to manage it correctly?
If user paid money for removing the ads how the application know if to show him the ads or not?Do i need to save the data locally manage it with SharedPreference or i getting the status about his purchases automatically? What will happen if the user replace his device?Google remember his account and his purchases?
I really need a basic example :(.
Like few methods that make "buy()" and "isOwned()" for checking if the current user has paid ..
Help me please
First of all implement In-app purchase in your application, you can follow this link.
When user purchased any item successfully, success status will be sent from google.
After purchasing successfully, store some flag value in SharedPreferences, SQLiteDatabase or in your server database through webservices.
Now whenever you are showing ads in your application, check flag value you have stored.
1. if flag shows that user have purchased item, don't show ads.
2. if flag value shows that user did not purchase anything show your ads.
Google remember his account and his purches?
Google will fetch all purchases from user's email id. You can restore purchase from the user, so whenever user uninstalls your app and you dont want user to purchase your item again, give them option of restore. Restore will give their product back and also give you success status.
I am hosting a paid app. I have a query. How a person purchasing the app is recorded so as to when they need to re-download (say after wiping phone or refreshing the phone software) is the previous purchase recognised. Is there a registration or something that I would need to keep (or is it recommended).
If your app is downloadable from the Google play store then there is nothing you need to do. The play store will automatically work out when the user visits your apps page whether they need to purchase, whether they have purchased, or whether they purchased and then refunded.
The only thing you might want to do is to add some code at the start of your app launching that automatically checks google servers and ensures that the purchase has been made, otherwise you can block the app. Although this isn't fool proof but it highly reduces the changes of your app being pirated.