问题
I just integrated the Apple's In-App purchase into my application with 4 products. It was working fine in Sandbox mode before it gets rejected by Apple for not submitting the In-App with the application binary. Once it was rejected it is not fetching the products I was added. It shows no products are there in the list. I checked all the product IDs. But no use.
Deleted the previous products and added new, but still the same problem exists. After that I created new application with 2 products. But once again it shows no products are there...
Any one please help me...
回答1:
Do you still have paypal link in your app? In App Purchases and all the Apple Requirements are tough. Can you simply remove the for-sale items and still have a useful app that will be approved.
Are you sure, you are using new product id after creating your new app because this is the unique id that identifies your in-app purchase. Usually it’s best to start out with your bundle id, and then append a unique name for the purchase at the end and what was the type of your product (consumable/non-consumable).
you need to have put your all in-app purchase item for review and Apple will review and approve along with your in-app purchase.
They would have rejected because your In-app purchase items are still in ready to submit
Apple review your in-app purchase item as well. so when ever you are adding new in-app purchase item you have to send for review. hope i could describe you well.
According to your comment below :
Because they might have deleted/rejected you developer account, they are very strict and they flaunt if they find any violation so may be you need to renew your iOS Developer Program membership(can send a mail to them about your story). In addition, your existing Development and Distribution certificates and provisioning profiles will be revoked and invalidated. You will also lose access to pre-release software, available discussion forums, and Developer Technical Support. Because as far as i see that your new unique product is not supporting with your developer account.
Lets assume you have setup well
There is SKProductsRequestDelegate which gives you SKProductsResponse .It has two properties products and
invalidProductIdentifiers (An array of product identifier strings that were not recognized by the Apple App Store. (read-only))
So what array value you get for invalidProductIdentifiers ?
来源:https://stackoverflow.com/questions/6991679/in-app-not-working