{ by david linsin }

August 31, 2010

Testing Apps with In App Purchases in Simulator

I'm writing for the Synyx GmbH & Co. KG mobile solutions blog. From time to time, I'll cross post articles here, if I think they are of interest for you. If you'd like to read all of my other posts, subscribe to the Synyx Mobile Solutions Blog.


If you add a store to your app and use In App Purchases to collect your payments, there are a couple of limitations your have to live with. One of those limitations is not being able to fully test your App in the iPhone Simulator:

Store Kit does not operate in iPhone Simulator. When running your application in iPhone Simulator, Store Kit logs a warning if your application attempts to retrieve the payment queue. Testing the store must be done on actual devices.


Although, there is not way to test Store Kit itself, you can still test the parts of your App that use and build on the information retrieved from Store Kit. You can use a preprocessor conditional inclusion to determine, whether you are running on the simulator and then "mock" the Store Kit calls or don't execute them at all.



Keep in mind: this might not work for your App, however, it did work for my Apps and it's better than not testing your code at all. The optimal solution would definitely be to connect to the In App Purchase Sandbox environment from the Simulator.

19 comments:

Mobile Application Development said...

Hi
How you do business today and tomorrow would depend more and more on how smartly you exploit mobile app development.

Mobile Apps Development

Unknown said...

but the docs say that IAP can be fully tested in the sim, except for hosted content. is this an error?

https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/DevelopingwithStoreKit/DevelopingwithStoreKit.html#//apple_ref/doc/uid/TP40008267-CH103-SW3

Unknown said...

Thanks for this blog. provided great information. All the details are explained clearly with the great explanation. Thanks for this wonderful blog. Step by step processes execution are given clearly.Know the details about different thing.
Mobile App Development Company
Android app Development Company
ios app development Company
Mobile App Development Companies

Kavi said...

This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
Mobile App Development Company
Mobile App Development Company in India
Android app Development Company
ios app development Company
Mobile App Development Companies

Sergey said...

What are cross functional teams? Learn about the benefits of Cross-Functional Teams, how cross functional teams work, and how to develop one for your team.

MindtechAffiliates said...

Thank you for sharing this great post, I am very impressed with your post, the information provided is meticulous and easy to understand. I will regularly follow your next post.

Thanks
Cpa offers

DedicatedHosting4u said...

Thank you for all the useful information. we will change this post with new information. It is a very beautiful post. I appreciate your efforts. Keep posting new updates with us.

DedicatedHosting4u.com

unknow said...

I really enjoyed your blog Thanks for sharing such an informative post.
https://myseokhazana.com/
https://seosagar.in/
Indian Bookmarking list
Indian Bookmarking list
India Classified Submission List
Indian Classified List
Indian Bookmarking list
Indian Bookmarking list
India Classified Submission List
Indian Classified List

ravi kumar said...

Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agianMarriage certificate in delhi
Marriage certificate in ghaziabad
Marriage registration in gurgaon
Marriage registration in noida
special marriage act
Marriage certificate online
Marriage certificate in mumbai
Marriage certificate in faridabad
Marriage certificate in bangalore
Marriage certificate in hyderabad thanks once again to all.

mayank said...

Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian

special marriage act
name add in birth certificate
passport agent
court marriage in delhi
name change
marriage registration
birth certificate in gurgaon
birth certificate in noida
birth certificate in ghaziabad
birth certificate in delhi

Vipin said...

Nice Post thanks for the information, good information & very helpful for others,Thanks for Fantasctic blog and its to much informatic which i never think ..Keep writing and grwoing your self

rc transfer in delhi
rc transfer in ghaziabad
rc transfer in noida
rc transfer in gurgaon
rc transfer in faridabad
rc transfer in bangalore
rc transfer in greater noida
rc transfer in mumbai
rc transfer in ranchi
rc transfer in chennai

Shakthi.K said...

Excellent information with unique content, it is very useful to understand blog-based information.
Mobile App Development Companies in UK
Mobile App Development Companies in California
Mobile App Development Companies in Italy
Mobile App Development Companies in Indonesia
Mobile App Development Companies in Jakarta
Mobile App Development Companies in Norway
Mobile App Development Companies in Sweden
Mobile App Development Companies in Turkey

Yourdoorstep said...

Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian

court marriage in delhi ncr
court marriage in delhi
court marriage in noida
court marriage in ghaziabad
court marriage in gurgaon
court marriage in faridabad
court marriage in greater noida
name change online
court marriage in chandigarh
court marriage in bangalore

Ramesh ji said...

Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian

name change procedure in india
name change procedure in punjab
name change procedure in rajasthan
name change procedure in maharashtra
name change procedure in andhra pradesh
name change procedure in lucknow
name change procedure in bihar
name change procedure in chandigarh
name change procedure in karnataka
name change procedure in delhi

mobileappdevelopment said...

Thanks for sharing such a nice information and it is really useful


Digital Transformation in Education industry

Ramesh ji said...

We have seen many blog but this the great one, Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would like to request, wright more blog and blog post like that for us. Thanks you once agian

birth certificate in delhi
birth certificate in noida
birth certificate in ghaziabad
birth certificate in gurgaon
correction in birth certificate
marriage registration in delhi
marriage certificate delhi
how to change name in 10th marksheet
marriage registration in ghaziabad
marriage registration in gurgaon

Guest Post said...

Thanks for the great content and sharing. Oflox is the best Digital Marketing Write For Us platform.

Royal Digitech said...

"This is really interesting, you are such a great blogger. Visit Royal Digitech for creative and professional website design and Digital Marketing in Sirsa
and Also get Digital Marketing Course in Sirsa
"

Royal Digitech said...

"Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian

Free Classified in India"


com_channels

  • mail(dlinsin@gmail.com)
  • jabber(dlinsin@gmail.com)
  • skype(dlinsin)

recent_postings

loading...