I'd think the ideal for me would instead be something in-between a Pebble and a Sensor Watch. Something hackable with more battery life, that is a watch first (and a smartphone notification screen never). I wonder how far I could go towards that goal with the upcoming Pebble hardware and rewriting the OS kernel to sleep more.
const platform = navigator.platform || '';
const userAgent = navigator.userAgent || '';
const isAppleDevice = /iPhone|iPad|MacIntel/.test(platform) ||
/iPhone|iPad|Mac OS/.test(userAgent);
// Set redirect URL and message based on device
const redirectUrl = isAppleDevice
? 'https://www.apple.com/watch'
: 'https://store.google.com/product/pixel_watch_3?hl=en-US';
Edit: per erohead, that change was made after your comment.- Chromium browsers (tested in Edge, Chrome, Brave) go to Pixel Watch,
- Android devices go to Pixel Watch,
- Apple devices go to Apple Watch,
- Firefox brings you to Apple Watch.
It might also be randomized, but that's what my tests got me, and only the Firefox one doesn't make humorous sense.
I had read your post correctly. I just provided more information for a cases that matched two of your conditions