In my application when user will buy any product using In- app Purchase i can not force user please log in in my application [ That is apple condition]
When a user will buy any product apple just give a in app purchase transaction_id .
In that case i can not keep track any users information in my system. later when the user will restore his In - app purchase product in another device, without any user track/ apple id/ Unique ID i can not manage my application.
how to i can get apple users unique id by transaction_id..?
The in-app purchase receipt fields do not have any PII (personally identifiable information). See details in the Receipt validation programming guide. In other words, you can not get user's apple-id from a transaction-id.
If you just want to be able to restore previous purchases, you can do so by restoring purchased products. See the details in In-app purchase programming guide
If you want to track the user for other purposes, you can have the user login in the app before showing them the purchase screens.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With