How to detect iOS/Android and open the relevant App Store from a button in a mobile web browser?

Actions & Logic

I am building a web landing page in Flutterflow which I want to use as a landing page for my app's marketing, from which I want to direct users to either the Apple App Store or Google Play Store by detecting their device, but I'm struggling to make this work.

What have you tried so far?

I've tried using the built-in "is iOS" and "is Android" actions but this isn't working in mobile Safari on iPhone.

I've also tried generating custom functions using AI to detect the device via browser but this simply shows "Errors detected".

Did you check FlutterFlow's Documentation for this topic?
No
1