Good morning, I have a problem, I want to implement some logic in my button but I'm not sure how to do it.
The button should have the action lunch url from variable. I want to build a deeplink to the Amazon mobile application - as long as the user has the application installed, this is not a problem, just add the deeplink "com.amazon.mobile.shopping.web://amazon..." and it will open in the amazon application.
But when the user does not have the application installed, we obviously get an error opening the page in the browser.
So we need to implement a logic that will check if the amazon application is installed (by trying to open the deeplink), if it opens, it ends, if it doesn't open, it will open another link from variable, which will open the browser and display the amazon website, e.g. amazon.com / or any other link in the browser...
How can I implement this in my project? Or maybe there is another solution?
Thanks very much for your help and best regards. Ps. Flutterflow is simply great! Good job.