Hey, So I just published my game on Playstore for Pre-Register and also set up a reward in the Developer console that will be delivered to players as soon as I publish the game. The problem is that I can't find a way to implement this function iside of Unity. Google says that it has a similar implementation as promotions with promo codes! Below I have a screenshot from the Google Billing Promo Support. How can I have access to this functions inside of Unity? I should also mention that I already use IAP in this game that work but without having a product catalog in Unity, just a script that handles the purchase and buttons that call functions inside of the script. Exactly like this Tutorial: https://learn.unity.com/tutorial/unity-iap#5c7f8528edbc2a002053b46e Now I really need to know how to handle the Pre-Register rewards! Thanks for your help, SAVVU
Do you have the product to be delivered to the player configured as an In App Purchase product on Google Play? You need to have IAP completely configured as described here https://docs.unity3d.com/Manual/UnityIAPGoogleConfiguration.html
Any update on this?, I tried to search Unity play store pre-register reward tutorial but found nothing. Pre-register link: https://support.google.com/googleplay/android-developer/answer/9084187?hl=en
We do not have a tutorial on pre-registration. My understanding is that after the IAP is initialized, the IAP will get the products owned by the user, and you should grant it to the user in ProcessPurchase. https://docs.unity3d.com/Manual/UnityIAPProcessingPurchases.html
Yes, you may also need to define the Products in scripts. https://docs.unity3d.com/Manual/UnityIAPDefiningProducts.html Code (CSharp): using UnityEngine; using UnityEngine.Purchasing; public class MyIAPManager { public MyIAPManager () { var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); builder.AddProduct("100_gold_coins", ProductType.Consumable, new IDs { {"100_gold_coins_google", GooglePlay.Name}, {"100_gold_coins_mac", MacAppStore.Name} }); // Initialize Unity IAP... } }
Handle it like In-App-Purchase. Just think about pre-register is automatic IAP that will give to you when IAP is initalized.