Has anyone found an easy way to detect if the device is iOS or Android and then prompt the user to add the app to the homepage on the device?
I think you could use WebSession.Platform and look for Android or iOS and then display the proper message.
There’s no reliable way. Check the UserAgent String, maybe taking the Screen resolution into account. But both can easy be “faked” by the Client.
BTW: This Webinar covers this question also, i think.
Platform is available in the PrepareSession event. Have a look at Paul Lefebvre’s excellent webinar linked above in Sascha’s reply.