question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide access to SKReceiptRefreshRequest on iOS

See original GitHub issue

currently both getAvailablePurchases and getPurchaseHistory call the same method on iOS which uses restoreCompletedTransactions.

The problem with this method is this intermittent issue. As an alternative to circumvent this issue it is suggested to use SKReceiptRefreshRequest to get the latest purchase.

I don’t know if there is a similar function on android. But it would be useful to provide access to the API on iOS.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
loopiezlolcommented, Apr 1, 2019

Hey, was wondering what is the status on this? I am interested in helping with the implementation - (in a week + as I have my hands full with my disseration atm).

After launching an IAP subscription to prod, been noticing some weird payloads returned by the ios verification endpoint, where no actual receipts are in the latest_receipt_info or in_app fields

What made it even weird, transactionDate (as sent by the react-native-iap on the client ) is 0. As many other posts across the web (i.e this) mentioned this might be circumvented by this method.

0reactions
stale[bot]commented, Jul 30, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SKReceiptRefreshRequest | Apple Developer Documentation
A request to the App Store to get the app receipt, which represents the user's transactions with your app. iOS 7.0+ iPadOS 7.0+...
Read more >
ios - Is SKReceiptRefreshRequest limited to the testing ...
1 Answer 1 ... You shouldn't be calling SKReceiptRefreshRequest to keep the receipt up to date. As you've seen, any time you access...
Read more >
iOS & Mac App Stores | In App Purchasing - Unity - Manual
However, iOS provides a Transaction Receipt that contains all purchases, including Ask to Buy. Access the most recent Transaction Receipt ...
Read more >
iOS Auto Renewing Subscriptions - Josh Wright
Auto-renewing subscriptions in iOS are confusing. ... App Loads If CACHED_EXPIRATION is in the future Grant Access!
Read more >
Provide access to SKReceiptRefreshRequest on iOS #337
Provide access to SKReceiptRefreshRequest on iOS #337. schumannd posted onGitHub. currently both getAvailablePurchases and getPurchaseHistory call the same ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found