Post

Replies

Boosts

Views

Activity

Reply to Passing the User ID between an iOS app and Rails backend for In-App Purchases
Hello. We have the same problem described in original question, but slightly different in that the issue for us is when a user subscribes by redeeming an offer code. For subs they purchase directly from our mobile app, we know the user's id at time of purchase, create the association between the user and the new subscription transaction id and then use those identifiers we receive in app store notifications to update the subscription status for the user (essentially just as Oscar described). However, if a user redeems a code for a free subscription via redemption url or by entering the code directly in the app store, bypassing our app, we receive an Notification of Type: OFFER_REDEEMED directly from app store and we don't have a transaction yet on our backend to know which user just subscribed to a new subscription using the redemption code. Any suggestions/ideas/info on handling that variation is very much appreciated!
Mar ’23