kudago / smart-app-banner

Lightweight smart app banner with no jquery requirement
MIT License
526 stars 250 forks source link

Detect if the specific app is installed or not #52

Open iamkallolpratim opened 8 years ago

iamkallolpratim commented 8 years ago

How to detect the specific app is installed or not on the device. If the app is installed it will open the app and if not it redirect the app download link

GabLeRoux commented 7 years ago

According to this stackoverflow question, this is not possible: http://stackoverflow.com/questions/31289530/load-ios-smart-app-banner-through-javascript

Confirmed by apple :( This issue can be closed as we currently cannot do anything about it.

allexgut commented 7 years ago

There is a way to "imitate" this functionality if we use the "userInstalled" cookie in order to determine if the app is installed or not. The drawbacks are obvious - by deleting his cache/cookies, the user will be sent to the App Store instead of the application, the first time he opens the application. I could add this functionality and create an optional config parameter so you could choose if you want it or not. How does that sound?