in-app-subscription

Android Purchase subscription and introductory price

*爱你&永不变心* 提交于 2019-12-03 12:25:31
问题 Google came with with the idea of introductory price (https://support.google.com/googleplay/android-developer/answer/140504?hl=en). My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions (https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get) Even when I buy a subscription for introductory price and I asked Google Play Developer API for the information about that subscription, I see only the full

Android Purchase subscription and introductory price

淺唱寂寞╮ 提交于 2019-12-03 02:50:48
Google came with with the idea of introductory price ( https://support.google.com/googleplay/android-developer/answer/140504?hl=en ). My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions ( https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get ) Even when I buy a subscription for introductory price and I asked Google Play Developer API for the information about that subscription, I see only the full price. Even the inappproduct/get does not have any information about introductory price linked to

DispatchGroup issue when authenticate apple Id

…衆ロ難τιáo~ 提交于 2019-12-02 15:27:25
问题 I have one weird issue right now. I am using DispatchGroup() to verify in-app subscriptions on load. It works only if I have already authenticated with apple id. let dispatchGroup = DispatchGroup() var index = 0 // <--- Just For test for a in inAppPurchaseIds { index = index + 1 print("INDEX ENTER --> \(index)") dispatchGroup.enter() // <<--- MPInAppPurchases.verifySubscription(a) { [weak self] status, data, error, expDate in print("LOOP COUNT --> YES") guard let me = self else { print("INDEX

DispatchGroup issue when authenticate apple Id

夙愿已清 提交于 2019-12-02 08:20:02
I have one weird issue right now. I am using DispatchGroup() to verify in-app subscriptions on load. It works only if I have already authenticated with apple id. let dispatchGroup = DispatchGroup() var index = 0 // <--- Just For test for a in inAppPurchaseIds { index = index + 1 print("INDEX ENTER --> \(index)") dispatchGroup.enter() // <<--- MPInAppPurchases.verifySubscription(a) { [weak self] status, data, error, expDate in print("LOOP COUNT --> YES") guard let me = self else { print("INDEX LEAVE ME --> \(a)") dispatchGroup.leave() return } print("DATA ---- \(String(describing: data))")

Unable to test In App Subscription

蹲街弑〆低调 提交于 2019-11-26 23:18:04
问题 I couldn't find a way to test InApp Subscription with the test product ID by google i.e. private final String productID = "android.test.purchased"; // Test Product ID by Google In the docs it is not written anywhere that InAPP subscription couldn't be tested with test product nor it is mentioned anywhere,how to test InApp subscription. I have implemented my code following docs(InAppV3). The doc says: Implementing Subscriptions: Launching a purchase flow for a subscription is similar to