0

I am implement renewing subscription in my application.

When I purchase pack then I get receipt from app store by following code

NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
NSData *receipt = [NSData dataWithContentsOfURL:receiptURL];

Question : When I reinstall my app. I get nil from receipt In iPhoneX(11.4.1) But working fine in iPod(9.3.5)

Thanks in advance

mahal tertin
  • 3,239
  • 24
  • 41
  • Are you using the same App Store account on both devices? Is this happening in Sandbox mode or production? – enc_life Dec 17 '18 at 03:57
  • Are you using the same App Store account on both devices? - Yes .... Is this happening in Sandbox mode or production? - Sandbox mode – Goyani Maulik Dec 17 '18 at 05:30
  • On physical devices, you should have a receipt file for a subscription that's shared across your App Store account (you won't see receipts in simulator). This may be an issue with Sandbox mode. – enc_life Dec 17 '18 at 17:05
  • I also assumed this is an issue with Sandbox mode. – Goyani Maulik Dec 17 '18 at 18:36

0 Answers0