bizz84 / bizz84/SwiftyStoreKit
Detecting change in apple id login
- Dominant language
- Swift
- Stars
- 6.7k
- Forks
- 801
- PR merge metrics
- No merged PRs in 30d
Description
### Platform
- [* ] iOS
- [ ] macOS
- [ ] tvOS
### In app purchase type
- [ ] Consumable
- [ ] Non-consumable
- [* ] Auto-Renewable Subscription
- [ ] Non-Renewing Subscription
### Environment
- [* ] Sandbox
- [ ] Production
### Version
ℹ 0.13.2
##Report
### Issue summary
ℹ Please replace this with an explanation of the issue, including reproduction steps.
I'm trying to figure out a solution for the scenario where the user after subscribing with their primary apple account on the app, logs out and logs in with a different apple id, in this case I want to be sure that the subscribed data is being accessed by the apple id which had subscribed the service, so in this case after receipt verification, the app returns the receipt data associated with the old apple id, If I use forceRefresh = true in
`SwiftyStoreKit.verifyReceipt(using: appleValidator, forceRefresh: true)`
even then the login prompt is for the old apple id and the user is prompted to enter their password only.
Is there a way to detect the change in apple id? Even if I uninstall the app and reinstall it, it still doesn't make any difference.
Contributor guide
Assessment
This issue has not been assessed yet.