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: Unity IAP - Unity Learn
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 Unity - Manual: Configuring for Google Play Store
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
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...
}
}