-
|
Thanks so much for this package firstly - so much effort and the code looks really nicely architected. I'm wondering how you ensure that a user is securely associated to a purchaseToken before any RTDN request hits your app. Here are my thoughts:
I can see ordering of events mattering a lot here, where my app could receive and start processing the SUBSCRIPTION_PURCHASED RTDN before the first request from my app happens. Is this a common issue? How do you handle this flow of associating a user to a purchaseToken? I don't want to rely on the RTDN messages to do this step as I don't think it's possible in a secure way? Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Apologies btw - I see this has been discussed once or twice, excepting my concerns about the ordering issue, so I guess my question should really be scoped to anything past the bullet list! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @huwcarwyn Both Google Play and AppStore provide a mechanism to attach a masked user ID to each purchase. The android/iOS developers need to collaborate with the backend developers on this. Mobile App
Backend
This is the suggested flow from the providers, I hope this answers your question. Note Regarding the deprecation notices you see in the documentation, I'm actively working on supporting the new workflows, and I welcome any contribution you may have. |
Beta Was this translation helpful? Give feedback.
-
|
Ooooh I get it now! This obfuscated ID is set on the initial purchase request, so theoretically you could use this to match to the user no matter which request happens first since it's going to be set way before any request has arrived...makes sense now! For other readers in my boat:
|
Beta Was this translation helpful? Give feedback.
Ooooh I get it now! This obfuscated ID is set on the initial purchase request, so theoretically you could use this to match to the user no matter which request happens first since it's going to be set way before any request has arrived...makes sense now!
For other readers in my boat: