Hey there!
I've managed to figure out how to detect the platform being used. It's working well so far:
// Extract User-Agent String
var UserAgent = navigator.userAgent.toLowerCase();
// Check User-Agent for certain keywords
if (UserAgent.search(/(iphone|ipod|opera mini|fennec|palm|blackberry|android|symbian|series60)/) > -1) {
// mobile device detected
alert("YOU HAVE A SMARTPHONE");
} else {
// non-mobile device (PC, Tablet, etc.)
alert("YOU HAVE NO SMARTPHONE");
}
Now, I want to create a full-screen page specifically for iphone users, prompting them to download an app with buttons for "Download" and "No thank you, continue to normal page".
Any ideas on how to achieve this?
If anyone can offer assistance, it would be greatly appreciated.
The page should fill the entire screen with no other distractions.
Thank you in advance.