that what me thought too.I should just give it a try hey.
- You need to setup the promocodes in Google ConsoleMy reading suggested the app had to have something setup.
Support promo codes in your app
To support promotion codes, your app must call the queryPurchases() method whenever the app starts or resumes. This method returns a bundle of all current, unconsumed purchases, including purchases the user made by redeeming a promo code. The simplest approach is to call queryPurchases() in your activity's onResume() method, since that callback fires when the activity is created, as well as when the activity is unpaused. Calling queryPurchases() in onStart() and onResume() guarantees that your app finds out about all purchases and redemptions the user may have made while the app wasn't running. Furthermore, if a user makes a purchase while the app is running and your app misses it for any reason, your app still finds out about the purchase the next time the activity resumes and calls queryPurchases().
Your Activity's onPurchasesUpdated() method receives a response intent identifying when a purchase is completed. However, your app should still call queryPurchases() in onStart() and onResume(), in the case the purchase and consumption workflow didn't complete. For example, if the user successfully redeems a promo code and then your app crashes before the item is consumed, your app still receives information about the purchase when the app calls queryPurchases() on its next startup.
Your app should also support the scenario where a user redeems a promo code in the Play Store app while the app is running. Your app can find out about the redemption through the onPurchasesUpdated() listener.
Use the Google Play Console to assign promo codes for your one-time products. To create a promo code for a one-time product, refer to Create promotions.
Step 3: Set up a promotion in the Play Console
Your codes will download to a CSV file. To share with users, you can print the codes or send a deep link allowing users to redeem the codes via email or a notification within your app.
- Go to your Play Console.
- Select an app.
- Select User acquisition > Promotions > Add new promotion.
- Review and agree to the Terms of Use.
- Follow the on-screen instructions to name your promotion, set up start and end dates, select your promotion type, and enter the number of promo codes you want to create.
- To turn the promotion on during the start and end dates you entered, set the status to On.
- Select Create.
- Wait several seconds and select the download link.
Dim i As Intent
i.Initialize("android.intent.action.VIEW","https://play.google.com/store?code=ABCDEFG")
StartActivity(i)
Sorry I dont knowwhat you mean?Cant you treat a Codebased Purchase as a valid Subscription?
yes? Does the purchase (the code based one) does not include a purchasedate?I would have to put some sort of datestamp on the users device
You can set to allow only certain user to access the special subscription (with Free trial) by setting password protection or by entering certain code you generate yourself.
Yes my app currently has a 7 day free trial. I want to be able to reward people or as a promotion give away extended free subsciptions.
How can you allow certain users access?You can set to allow only certain user to access the special subscription (with Free trial) by setting password protection or by entering certain code you generate yourself.
In your app, create a Reward button/menu. When user tap on it, it opens up a new activity. This activity has an edit text where the user required to enter either their email or code that you send to them. Then when they submit, your app verify whether he/she eligible for the reward. If yes then open another activity that show the button to subscribe for the subscription with free trial period. This subscription product is different with the usual subscription which does not offer free trial.How can you allow certain users access?