{ 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.

12 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

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.

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

mobileappdevelopment said...

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


Digital Transformation in Education industry

Ajaypal Singh 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
"

Ajaypal Singh 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"

Ajaypal said...

Music and Performing Arts today is growing to be fields that students would like to consider as professional education options. All Professional Courses In Music And Performing Arts are available through us.Coaching and mentoring in Music & performing arts is also our forte. Handholding for admission in music and performing arts courses from across the world will be managed through our team.

glad432 said...

the is beautiful

techmuzzle said...

The information given by you is very beneficial for us.It is very easy to read and understandable. If you are looking to get an MUSIC CERTIFICATE PROGRAM ONLINE you have reached the right place. It’s as simple as logging on to Music Meléti site and searching for the course that meets your need. Browse through the course content and look at the educator profile and video. You will find PROFESSIONAL COURSES IN MUSIC AND PERFORMING ARTS listed on the platform. Choose what suits your need but if you are confused we provide COACHING AND MENTORING IN MUSIC & PERFORMING ARTS, so reach out to us. We also provide HANDHOLDING FOR ADMISSION IN MUSIC AND PERFORMING ARTS course selection. Once the confusion is sorted simply pay and confirm your participation to our Music Certification Program Online. Many Professional Courses in Music and Professional Courses in Performing Arts are available through Music Meléti.

Digital Manish Sirsa said...

This is really interesting, you are such a great blogger. You are such as a great blogger. Your blogs are so good and interesting. Yiour content is so good. Visit https://alarcoin.com/ for creative and professional website design and Alar Crypto Coin.


com_channels

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

recent_postings

loading...