Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

前端 未结 13 2140
灰色年华
灰色年华 2020-11-22 03:55

I\'d like to have iOS to open URLs from my domain (e.g. http://martijnthe.nl) with my app whenever the app is installed on the phone, and with Mobile Safari in case it is no

13条回答
  •  忘掉有多难
    2020-11-22 04:22

    If you add an iframe on your web page with the src set to custom scheme for your App, iOS will automatically redirect to that location in the App. If the app is not installed, nothing will happen. This allows you to deep link into the App if it is installed, or redirect to the App Store if it is not installed.

    For example, if you have the twitter app installed, and navigate to a webpage containing the following markup, you would be immediately directed to the app.

    
    
        
        iOS Automatic Deep Linking
        
        
            
            

    Website content.

    Here is a more thorough example that redirects to the App store if the App is not installed:

    
    
        
        iOS Automatic Deep Linking
        
        
        
        
        
        
        

    Website content.

提交回复
热议问题