in-app-purchase

in-app purchase crashes when fetching products from the Play Store in Flutter

随声附和 提交于 2021-02-07 05:02:41
问题 I am facing an issue after installing and implementing in-app purchase plugin Flutter team provided. What I did so far: added 2 products on Play Store that are visible and active. submitted build for alpha testing, since that is required for in-app purchase to work. added InAppPurchaseConnection.enablePendingPurchases(); at the app launch created a sequence of requests to the app store out of which last one fails with nasty log I can't work around bool available = await _iap.isAvailable(); if

in-app purchase crashes when fetching products from the Play Store in Flutter

徘徊边缘 提交于 2021-02-07 05:02:24
问题 I am facing an issue after installing and implementing in-app purchase plugin Flutter team provided. What I did so far: added 2 products on Play Store that are visible and active. submitted build for alpha testing, since that is required for in-app purchase to work. added InAppPurchaseConnection.enablePendingPurchases(); at the app launch created a sequence of requests to the app store out of which last one fails with nasty log I can't work around bool available = await _iap.isAvailable(); if

App Store Connect does not show all sales - why?

强颜欢笑 提交于 2021-02-07 04:21:05
问题 In order to be able to better estimate the revenue income of our app, we implemented a Database function that reliably (we tested it in Sandbox mode) increases a subscription counter for the subscription that was made by one once a subscription has been made. This function is only triggered once an in-app purchase has been successful (i.e. when we receive the feedback from StoreKit to enable the Premium functions). Now, we have found enormous discrepancies between the data we observed and the

Apple In-app purchase transaction_id of one purchase changes sometimes

柔情痞子 提交于 2021-02-05 20:10:56
问题 Once I get a receipt from client and validate it by apple server, then I got a transaction id of the new purchase (it's an auto-subscription purchase) in this receipt. After a few days , I get a new receipt from the same client and validate it , strange things happen : the transaction id of that old purchase changes. I compare the data of this purchase in the old receipt with the data in the new receipt , the only thing changes is the transaction_id field ,the original_transaction_id,

Apple In-app purchase transaction_id of one purchase changes sometimes

柔情痞子 提交于 2021-02-05 20:10:26
问题 Once I get a receipt from client and validate it by apple server, then I got a transaction id of the new purchase (it's an auto-subscription purchase) in this receipt. After a few days , I get a new receipt from the same client and validate it , strange things happen : the transaction id of that old purchase changes. I compare the data of this purchase in the old receipt with the data in the new receipt , the only thing changes is the transaction_id field ,the original_transaction_id,

Apple In-app purchase transaction_id of one purchase changes sometimes

不打扰是莪最后的温柔 提交于 2021-02-05 20:10:18
问题 Once I get a receipt from client and validate it by apple server, then I got a transaction id of the new purchase (it's an auto-subscription purchase) in this receipt. After a few days , I get a new receipt from the same client and validate it , strange things happen : the transaction id of that old purchase changes. I compare the data of this purchase in the old receipt with the data in the new receipt , the only thing changes is the transaction_id field ,the original_transaction_id,

how to assign skpayment applicationusername

主宰稳场 提交于 2021-02-05 11:27:28
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

how to assign skpayment applicationusername

故事扮演 提交于 2021-02-05 11:27:12
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

how to assign skpayment applicationusername

前提是你 提交于 2021-02-05 05:27:27
问题 can we assign skpayment applicationusername? When in app purchase is completed, I got a null applicationUsername in the SKPayment. How do I assign a value to SKPayment applicationUsername ? 回答1: You can't assign a value to the property of an SKPayment ; When you create the SKMutablePayment instance in order to submit the purchase request, your app can provide an opaque value that represents the application user id. This enables the iTunes store to detect irregular activity. Despite its name,

How to check if a subscription has been cancelled?

烂漫一生 提交于 2021-01-29 11:28:48
问题 I have requested a refund on my own app’s monthly subscription. Apple gave me the refund. But my subscription is still active and I can use the premium features. My app is checking the validity of the receipt every time I use it, this proves that the receipt's expiry date has remained valid. This is how I check for it. Although it is in Python on my server, I hope the code is clear enough for anyone to understand: def verify_receipt(receipt): r = requests.post(config.APPLE_STORE_URL, json