Is there an easy way to determine what type of device was used within the
api object in a post-login action? A couple of use cases would be to:
- Add that device info to an analytics login event
- Count the number of user logins on desktop vs mobile for a web app.
The only field that I see that might work would be the
event.request.user_agent but I’m not sure how consistent that is and looks like that would require some string parsing to determine mobile vs desktop. I’ve also seen
isMobile present in the log details but haven’t seen any way in accessing those via an Action.
Hello @ryan.liszewski welcome to the community!
I’m unfortunately not seeing much either outside of
user_agent like you mentioned - This could be a good candidate for a feedback request if you’d like.
Outside of the context of an Action, Log Streams might be something of interest in terms of gathering analytics.
We’ve been passing info in via params to the request and then can access them actions, for example
At a higher level, we set up our ios, android and web logins to be separate connections, so that helps distinguish them as well.
Thanks for sharing with the community @shannon.paige, very helpful!
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.