in-app-purchase

Chrome Packaged App TOKEN_MISSING_ERROR

本小妞迷上赌 提交于 2020-01-15 11:18:13
问题 I have a Chrome packaged application that I am testing to add in-app purchases. When running the application from my own account querying getSkuDetails works fine. However, when running it from another test account, it returns TOKEN_MISSING_ERROR . I cannot find any google developer documentation to help me progress this. Has anyone come across this? 回答1: I discovered that this problem is related to the Chrome browser not being logged in. I ran into this same issue on my test machine's Chrome

iPhone In-App Purchases for Free-Trials

一笑奈何 提交于 2020-01-15 09:32:09
问题 I am in the process of releasing an application to the app-store. I recently saw that you can make your application free but have in-app purchases. When I saw this I thought that this could be used to create a free trial. However in Apple's Helpful Tips for Using In App Purchase In Free Apps it says Don’t set time limits on any of the functionality of your app, either for run times or life times. Applications that only run for a set number of minutes per session, or that expire altogether

Are Google Play in-app purchases still valid if the app or the product is removed?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 02:54:25
问题 Some Android apps published on Google Play ask users to pay for something. In the developer console of those apps there is some digital products that the user can buy. What happens to the real products the users buy if the app is removed or the product is removed? I mean: are the user buying something that depends on the product that's in the developer console or Google clones it for each purchase so purchases are still valid even if the app or the product is removed? 来源: https:/

In app purchase - Subscription - not based on Apple Id

你离开我真会死。 提交于 2020-01-14 14:59:25
问题 I understand that If a user buy something using in app purchase, it should reflect in all the devices owned by the user ( based on logged in apple id ). But in my case I need to handle it with "our own username and not apple id". That is if user logged in to our application in multiple device, We need to handle subscription all our own. Just to clarify, even if user logged in to two devices with same apple id but different user in our application, only the username who actually bought our

How to save SKProduct object locally?

主宰稳场 提交于 2020-01-14 12:48:51
问题 I have tried to save a SKProduct object with archiving it with the class NSKeyedArchiver but it generates an error as -[SKProduct encodeWithCoder:]: unrecognized selector sent to instance . + (void)saveProduct:(SKProduct *)product { NSData *data = [NSKeyedArchiver archivedDataWithRootObject:product]; [[NSUserDefaults standardUserDefaults] setValue:data forKey:PRODUCT]; [[NSUserDefaults standardUserDefaults] synchronize]; } Is there a way to save an instance of SKProduct or not? 回答1: Your

Verifying in-app-purchases

霸气de小男生 提交于 2020-01-14 07:45:24
问题 The sample app that the Google Developers guide refers to has a method called verifyValidSignature() that looks like this in the BillingManager class: /** * Verifies that the purchase was signed correctly for this developer's public key. * * Note: It's strongly recommended to perform such check on your backend since hackers can * replace this method with "constant true" if they decompile/rebuild your app. */ private boolean verifyValidSignature(String signedData, String signature) { try {

Android In App Billing - Error Retrieving Information From Server

偶尔善良 提交于 2020-01-14 07:12:26
问题 I am using Android in app billing for in app purchases. In rare cases a number of my users are reporting Error: "Error retrieving information from server. [RPC:S-7:AEC-0]" This is happening in prod not in testing. And I'm unable to reproduce this locally to debug. What does this error mean and how to resolve it? 回答1: You might want to take a look at This Previous Question Check if you are using latest version of Google Play. OR Following the steps below. RPC:AEC:0 error is known as CPU/RAM

Check which product the user bought on an In-App Purchase

坚强是说给别人听的谎言 提交于 2020-01-14 03:47:29
问题 I have used this tutorial and wonder how to check which of the products the user just bought. I saw in the end of the tutorial: The resources zip for this tutorial contain images for all of the the comics, so if you’re so inclined you can wrap it up by showing the comic in a new view controller when a purchased row is tapped! If you want to do this, you can just check if the productIdentifier is in the purchasedProducts array of the InAppRageIAPHelper before allowing the user access to the

How do I know if an in-app-purchase receipt comes from the sandbox?

让人想犯罪 __ 提交于 2020-01-13 05:20:08
问题 The iOS IAP documentation states, that if you want to test a store you should log out from you itunes account in the settings application. When doing an in-app-purchase, you are then asked for username and password. However, inside the app, I don't know if the user is logged in or if he is using a sandbox account. In fact, I don't really care if it is a sandbox transaction, but: on the server I have to verify real receipts via the URL https://buy.itunes.apple.com/verifyReceipt and sandbox

Knowing when user has pressed cancel buttons during In-App purchase

蓝咒 提交于 2020-01-12 09:16:13
问题 I am writing code for in-app purchases and using a "Processing..." view with an activity indicator to block the "Buy Now" button once a purchase is initiated. However, how can you tell when the user hits a "Cancel" button since those alert views are coming from the AppStore.app? Is there a delegate method that gets called when those cancel buttons are pressed? Or is it a matter of your view becoming firstResponder again? What am I missing here? If you don't think this is possible, have a look