shibuyashadows
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2016
03:51 PM
How to identify the current user?
This seems like an obvious question, but I couldn't find any info on it.
I am trying to allow a user to subscribe to a monthly VOD channel, but I am having trouble understanding how I identify the roku user (as opposed to device)
Is the correct method to get them to agree to share their roku email address via the popup, I register that with my server and also store it in my roku app's secure registry. Then on app startup, retrieve it from the registry? This isn't very secure as what if they change their email address etc.?
Or is the idea that everyone implements a web based registration system that links to roku devices and roku purely deals with the payment processing?
I am trying to allow a user to subscribe to a monthly VOD channel, but I am having trouble understanding how I identify the roku user (as opposed to device)
Is the correct method to get them to agree to share their roku email address via the popup, I register that with my server and also store it in my roku app's secure registry. Then on app startup, retrieve it from the registry? This isn't very secure as what if they change their email address etc.?
Or is the idea that everyone implements a web based registration system that links to roku devices and roku purely deals with the payment processing?
1 REPLY 1
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2016
08:19 PM
Re: How to identify the current user?
Correct, email can change - so i wouldn't.
What i would do - if using Roku payments - is use the `purchaseId` returned by roChannelStore.doOrder() - or a subsequent `getPurchases()`, see sample dump at https://forums.roku.com/viewtopic.php?f=34&t=95592
What i would do - if using Roku payments - is use the `purchaseId` returned by roChannelStore.doOrder() - or a subsequent `getPurchases()`, see sample dump at https://forums.roku.com/viewtopic.php?f=34&t=95592