示例#1
0
        public static void trackAppStoreSubscription(AdjustAppStoreSubscription subscription)
        {
            if (IsEditor())
            {
                return;
            }

#if UNITY_IOS
            AdjustiOS.TrackAppStoreSubscription(subscription);
#elif UNITY_ANDROID
            Debug.Log("[Adjust]: App Store subscription tracking is only supported for iOS platform.");
#elif (UNITY_WSA || UNITY_WP8)
            Debug.Log("[Adjust]: App Store subscription tracking is only supported for iOS platform.");
#else
            Debug.Log(errorMsgPlatform);
#endif
        }
示例#2
0
        public static void TrackAppStoreSubscription(AdjustAppStoreSubscription subscription)
        {
            string price           = subscription.price;
            string currency        = subscription.currency;
            string transactionId   = subscription.transactionId;
            string receipt         = subscription.receipt;
            string billingStore    = subscription.billingStore;
            string transactionDate = subscription.transactionDate;
            string salesRegion     = subscription.salesRegion;
            string stringJsonCallbackParameters = AdjustUtils.ConvertListToJson(subscription.callbackList);
            string stringJsonPartnerParameters  = AdjustUtils.ConvertListToJson(subscription.partnerList);

            _AdjustTrackAppStoreSubscription(
                price,
                currency,
                transactionId,
                receipt,
                billingStore,
                transactionDate,
                salesRegion,
                stringJsonCallbackParameters,
                stringJsonPartnerParameters);
        }