In App Purchase not working from Messages Extensions?

I'm trying to setup IAP in my message extension, and I keep getting the following error when making a product request:


Error Domain=SKErrorDomain Code=0 "(null)"


Is IAP currently busted in Beta 1?

Unfortunately it looks like IAP in message extensions isn't working in Seed 1. We should have a fix for this in Seed 2. Sorry!

Thanks! Just wanted to make sure I wasn't going crazy...

Update on this.


iOS 10 Beta 2 appears to resolve the original issue reported here, but now when attempting to finish a payment, my sandbox users fail with the following error:


Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}


Has anyone been able to get an IAP working with a Sandbox user in Beta 2?

I am able to complete the purchase from a physical device. Looks to be simulator only that is causing me problems.

Glad to hear it's at least working for you on device. If you could file a bug report for it not working in the simulator that'd be helpful. Thanks!

Hi,


I'm using seed 3 and I still get the same error. I've tested with seed 2 before and no success.

The error is when I try to request store products. I receive


Error Domain=SKErrorDomain Code=0 "(null)"


On the didFailWithError:.


Any ideas? I've tested both on device and simulator.

The bug that I had been tracking was marked as fixed so if there's somethign still not working please get a bug report written up. If you have a sample project that you can include that will be extremely helpful.


There are a few IAP-specific resources that would be good to check: In-App Purchase FAQ and In-App Purchase Best Practices in particular. Is the code you're using working in your iMessage app working normally in your main parent iOS app?

PDM,


I've confirmed this is a regression in Beta 3. My project was working fine in Beta 2, and SKProductRequest was accurately returning product. However, Beta 3 is now failing the same way as Beta 1 was,


Error Domain=SKErrorDomain Code=0 "(null)"


No code changes were made on my part, simply an update to Beta 3.


I'm not able to file a radar at the moment, but I wanted you to know that this has regressed and prevents all IAP from a message app.

PDM, can you re-open rdar://27045413 ? I can't seem to re-open it on my end.

I just added IAP code using Beta 3 and got the same errors as well when trying to fetch products.

As much as I hate to say it, apparently you'll have to hang on until the next beta release. I'm really sorry this is dragging on through so many betas. 😟

Ahhh ok.. no problem. Guess I'll come back to it in the next beta, thanks pdm!

Are you using IAP to unlock stickers or features from the parent app?

Yeap, IAP is not working on my Messages Extension (device or simulator) but it works fine on the main app.


Fails with

Error Domain=SKErrorDomain Code=0 "(null)"

As I mentioned a couple days ago, you'll have to wait until the next seed goes out.

In App Purchase not working from Messages Extensions?
 
 
Q