iOS app IAP Settings Summary

Source: Internet
Author: User

iOS app Reset

Wjforstudy shared some of the basics of IAPknowledge. The address in the forum is: http://www.cocoachina.com/bbs/read.php?tid=92060

1. Before starting IAP development, have a general understanding of IAP, the following article is for you to prepare:
Apple's Official document: Store Kit GuideAppPurchase)
Now there is a very mature translation of this document online, if you want to speed up the reading, see here
Translation version: http://yarin.blog.51cto.com/1130898/549141

PS: Start IAP Development does not require much depth of background knowledge, here to look down on it. But to understand the two forms of authentication for IAP:device verification and server validation


2. Online spread of the more extensive IAP development process of the post, said the scope is very comprehensive, but some content can not keep up with the times, a total of two points to note:
first, in the current IAP test, there is no need to submit the program and let developers set the program status "Developer Reject", only the program to "prepare for upload" on it.
second, in the IOS5, can already test in the simulator, debugging IAP this function.
The address of this article is:
IAP (in-app purchase): Full introduction
http://fei263.blog.163.com/blog/static/927937242011321105241823/
This article contains the entire process from the creation of the app ID to the basic functionality of the IAP, which is worth taking the time to look at, but pay attention to a fewproblem:
1. There are several preconditions that are not stated in the article:
<1 The information about purchase contract in the itunes Connect account should already be set up before adding the test user. At a minimum, you should click on the Contract Request button to place contract in the pending in process state.
Once you have completed the above, you will be able to choose to create the test user when you first enter the Manage user interface.


3.Please ensure that your pruchase contract has been completed by this time! Contract Bank Info,tax info,contact Info all need to complete!
This post is recommended here, mainly on the process of preparing and testing the IAP after the program information is created in itunes Connect:
"iOS development required" in the iOS app, use Iap/storekit, sandbox test, create test account process!
http://blog.csdn.net/xiaominghimi/article/details/6937097


4. Having problems?
Well, after the previous preparation, it is the real and IAP Unicom steps. When entering a product ID to initiate a request to the server, there is a high likelihood of a failure, and in the Request property invalidateidentifier you will find that the product ID is invalid.
Why is it? Apple won't tell you, even a mistake.CodeNo, very pit daddy.
So here we have a check List that needs to be checked by each of you:
Have you enabled the In-app Purchases for your App ID?
Checked cleared for Sale for your product?
Have you submitted (and optionally rejected) your application binary?
Does your project ' s. plist Bundle ID match your APP ID?
Are you generated and installed a new provisioning profiles for the new App ID?
Have your configured your project toCodeSign using this new provisioning profile?
is building forIPhoneOS 3.0 or above?
Is you using the-the-full product ID when was making an skproductrequest?
Waited several hours since adding your product to ITunes Connect?
Is your bank details active on ITunes Connect? (via Mark)
Tried deleting the app from your device and reinstalling? (via Hector, s3b, Alex O, Joe, and Alberto)
Is your device jailbroken? If So, you need to revert the jailbreak for IAP. (via Oh my God, Roman, and Xfze)
If you answered "No" to any one of these questions, there ' s your problem.


If you answered ' Yes ' for each of the these questions and you still has an invalid product ID, then you have a problem I has N ' t seen before. Check out the links under the next section, several of which is Developer Forum posts that were especially helpful in my Hun T for debugging Invalid product IDs.


5. AgainUseExample code provided by others testing the IAP after the completion of the, here to introduce you to someone else's packaged class library: Ecpurchase
Http://www.cocoachina.com/bbs/read.php?tid-38555.html
The class library is in the attachmentDownload。

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.