Can In App Purchase be tested using the iOS 8 Simulator? - ios

It seems to work until the point where I get an alert with the message: You've already purchased this In-App Purchase but it hasn't been downloaded.

I read a lot about it, and all I understood form this answer -
https://stackoverflow.com/a/24102236/2382237
that the only one way to test it on ios8 - launch app on the real device.

Related

For Cordova in app purchase, is the sandbox "confirm purchase" screen same as store?

I'm using the Cordova plugin cordova-plugin-inapppurchase to implement yearly subscriptions for my app. I'm wondering if the iOS sandbox screens are different than those in production? I need to reassure my customer that what they're seeing now (for testing) is not what they'll see in production!
In testing in the iOS sandbox, I get this type of screen to confirm my purchase (borrowed from a Ray Wenderlich tutorial) - but I get exactly the same thing.
I was expecting a screen similar to this.
I've read though the Cordova plugin doc and some tutorials but can't find an answer.
Thanks!
It changes when it's published and installed through the app store. As long as it's built with Xcode or installed via Testflight it will say [Sandbox] and look different than how you'd expect it to be.

Old style in app purchase dialogue

I am testing in app purchases now. In my app I use auto-renew subscription with sandbox account. I use XCode 9.2, the device is iOS 11.2.6, swift v4. Everything is working as expected, but I always get this dialogue then I press the "subscribe" button:
I saw the video from WWDC. Here is the screenshot from WWDC 2017 - Session 305 - Advanced StoreKit.
I am not sure, maybe this is normal behaviour. Maybe this is because of my sandbox account. Is it possible to get this new dialogue?
Yep, this is completely normal!
For some reason purchases inside of a sandbox (such as using a sandbox account or on TestFlight) will still use the old UI.
It's not clear why Apple has made this decision, or perhaps they simply never bothered to change it.
Either way, it's nothing to worry about on your part :)

iAd not showing on Device after releasing application on App Store Italy

Hello guys I have a problem as stated in the question. In Italy the iAd network is available but iAds are not showing when I download my app from the App Store. In the test emulator it was working fine. It is an iPhone only app. What might be the problem?
I am aware of the duplicate question:
iAd not showing on Device after releasing application on App Store, but I am sure that iAd is available in Italy.
Thanks.
Actually Ads appeared after one day. I don't know, but this was the first time I used them on an app, so I received in iTunes Connect a message that iAds were activated after one day. Maybe this helps anyone else who has this issue.
iAd may not be displayed on your device if there is no Ad available to display targeting your device and your type of application. Even if iAd is available, there may be no advertisers that chose to launch ads that corresponds to your app

In-App Purchase is not working in iOS7

I have a working code for In-App purchase , its working fine in iOS6 but when I run in iOS7 I got "Failed to load list of products" in debug area and when I tap on restore button to get the already purchased product it says "Cannot connect to iTunes Store".
I searched a lot but did not found any solution for this.
Please suggest
this is also happening for past few days on all iOS-es. Most of the time it gives same message on device as well. Though I have I know the code I have does not any issue and when I submitted to app and it is approved, it works perfectly. It looks like some issue with sandbox env.
DId you test it on simulator?
https://developer.apple.com/library/mac/releasenotes/DeveloperTools/RN-Xcode/#//apple_ref/doc/uid/TP40001051-SW241
StoreKit (In-App purchases) will not work in the Simulator. 13962338

"Cannot connect to iTunes store" when restoring iOS In App Purchase in iOS simulator

I've looked through the many existing questions related to "Cannot connect to iTunes store" issues with iOS StoreKit and I don't think my situation is covered:
When running in the iOS Simulator, I get the "Cannot connect to iTunes store" error after restoring a previous bought in app purchase. If I hit Cancel, the popup goes away and the restore is successful.
There is no problem at all when buying the in app purchase, only when restoring.
Also, the problem only occurs on the simulator, not when testing on a real iPhone.
I'm pretty sure everything is OK, just wanted to confirm that it is just a simulator bug. Any one else seen this one?
Having researched this as much as I can, and confirmed that there are no issues when running on a device, either in sandbox mode or (since yesterday, when the IAP was approved by Apple) using a real Apple ID, I'm assuming this is a simulator bug and can be ignored.
Contrary to the answer posted by iLive below, and repeated elsewhere on SO, testing IAP on the simulator is explicitly supported by Apple, except for hosted content downloads.
UPDATE: It would appear that since iOS 7, testing IAP on the simulator is no longer properly supported. I've had it working using the non-64bit simulator, but not with the 64bit iPhone simulator. Your milage may vary. As per pix's comment below, Apple also seem to have removed mention of iOS simulator testing from their documentation.
I do not believe you can test your purchases with the simulator.
From the "In-App Purchase Programming Guide":
Store Kit does not operate in iOS Simulator. When running your application in iOS Simulator, Store Kit logs a warning if your application attempts to retrieve the payment queue. Testing the store must be done on actual devices.
If you look at this link, Apple tells you about what you should do:
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/DevelopingwithStoreKit/DevelopingwithStoreKit.html
You can also check out this link: restore button for in-app purchases error
Hope this helped!
I ran into the same problem. I would get the "Cannot connect to iTunes Store". If you press Retry it will send you to the login prompt. However, if you press cancel, you will get "Restore Purchases Successful". This does seem limited to the simulator.
https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/index.html#//apple_ref/doc/uid/TP40001051-SW241
StoreKit (In-App purchases) will not work in the Simulator. 13962338
Make sure you use an account which is an sandbox user. I tried to use my personal iCloud account on Sandbox which got rejected with the same error.
As of recent (Version 8 and onwards) Xcode releases, I'd qualify the state of StoreKit in the simulator as partially implemented.
Apple officially says you need to test it on the device, however some calls seem to supported in the Simulator – at least the SKProductRequest always works flawlessly. Completing a purchase may or may not work.

Resources