最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Detect if an app is present in IOS else redirect to app store Javascript - Stack Overflow

programmeradmin7浏览0评论

I am working in a Microsoft SharePoint Mobile Application and I need to plete a POC using JavaScript which involves me to detect a IOS app if installed for which I need to trigger the app otherwise I need to navigate to the app store. I need to acplish this is the mobile device's Safari browser. I have implemented the solution using the suggestions used in Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

However, the problem I am facing is that although this detects the app the timeout code is not killed which triggers the navigation to the app store. My client needs the behaviour to not navigate to the app store if the app already exists. I am using the IOS latest version 10.2. I am new to the Mobile App domain and I am struggling to find a solution for this issue. Any help from the experts will be hugely appreciated.

I am working in a Microsoft SharePoint Mobile Application and I need to plete a POC using JavaScript which involves me to detect a IOS app if installed for which I need to trigger the app otherwise I need to navigate to the app store. I need to acplish this is the mobile device's Safari browser. I have implemented the solution using the suggestions used in Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

However, the problem I am facing is that although this detects the app the timeout code is not killed which triggers the navigation to the app store. My client needs the behaviour to not navigate to the app store if the app already exists. I am using the IOS latest version 10.2. I am new to the Mobile App domain and I am struggling to find a solution for this issue. Any help from the experts will be hugely appreciated.

Share Improve this question edited May 23, 2017 at 12:25 CommunityBot 11 silver badge asked Jan 18, 2017 at 12:24 Nilanjan DuttaNilanjan Dutta 831 silver badge8 bronze badges 3
  • 1 Possible duplicate of redirect to application if installed, otherwise to appstore – ZP Baloch Commented Jan 18, 2017 at 12:28
  • You can find your answer right here – Mubasher Khan Commented Jan 18, 2017 at 12:29
  • @MubasherKhan..I tried the suggestion...It is triggering App store link only and the not the app. Please note that the App is installed already in my device. Also I am using IOS 10.2 – Nilanjan Dutta Commented Jan 18, 2017 at 13:12
Add a ment  | 

1 Answer 1

Reset to default 8

Apple changed in iOS 9.2 on purpose to drive adoption of Universal Links. You'll need to implement those instead.

The best option is to use a service like Branch.io (full disclosure: I'm on the Branch team) or Firebase Dynamic Links for this.

发布评论

评论列表(0)

  1. 暂无评论