5

I'm testing auto-renewable subscription and I have the following problem:

  1. I make a purchase on device A
  2. With the same AppleID I restore the receipt on device B
  3. I change AppleID (from device settings) on device B
  4. I still have the receipt on device B that makes me a paying user

In this way a purchase can be duplicated just logging-in one time with a paying AppleID. So, how can I delete a receipt from a device? Or tell me if there's another solution...

Luciano
  • 1,208
  • 2
  • 17
  • 36
  • no public api to check logged in user apple id - http://stackoverflow.com/questions/2009530/is-it-possible-to-get-the-users-apple-id-through-the-sdk – Sam B Jan 05 '16 at 20:17
  • Have you tried refreshing the receipt with SKReceiptRefreshRequest https://developer.apple.com/library/ios/documentation/StoreKit/Reference/SKReceiptRefreshRequest_ClassRef/index.html#//apple_ref/doc/constant_group/Receipt_Properties – Marc Greenstock Jan 06 '16 at 16:22
  • 1
    @MarcGreenstock refreshing the receipt opens a login dialog and it's quite disturbing for UX, especially if I have to do this often – Luciano Jan 06 '16 at 17:47
  • Do you got solution of the problem? – Rajender Kumar Mar 19 '18 at 06:25
  • @RajenderKumar unfortunately no, I didn't find any solution – Luciano Mar 19 '18 at 13:45
  • You can try other ways like [Removing in app purchases from a new version of the application(iOS)](https://stackoverflow.com/q/16392492/6521116) – LF00 Aug 20 '19 at 11:07

0 Answers0