|
|
|
|
- Principle and implementation
inAppCheckSubscription (Function) In french: inAppVérifieAbonnement When starting the iOS application, checks whether the In-App subscriptions have been renewed. // Project initialization code inAppCheckSubscription(CheckSubscription) PROCÉDURE CheckSubscription(bSuccess is boolean, Product is inAppProduct) IF NOT bSuccess THEN ToastDisplay(ErrorInfo()) RETURN ELSE // Call the inAppListPurchase function // to check the start and end dates of subscription END Syntax
inAppCheckSubscription(<WLanguage procedure>)
Remarks Principle and implementation In iOS, you have the ability to create self-renewable subscriptions for the in-App purchases. When this type of subscription expires, the subscription is automatically renewed by the AppStore. A new purchase transaction is automatically created and transmitted during the next application start. Therefore, this transaction must be supported by the application to take into account the subscription renewal. inAppCheckSubscription must be called as soon as possible in the "Initialization" event of the project in order to process the subscription renewals. The procedure will be called as many times as the number of subscriptions to renew.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|