Android deep linking into an app

前端 未结 4 2080
梦谈多话
梦谈多话 2021-02-01 07:27

I am trying to create a link that can be sent via email which when opened on an android device with my app installed will automatically open the correct page in my app.

4条回答
  •  忘掉有多难
    2021-02-01 07:34

    To answer your questions, below is a sample intent filter in the manifest.

    
        
        
        
        
    
    

    So basically, when some one clicks on any link starting with http://www.example.com/home, he/she will be given the option to open it with your app along with the Browser apps. You have to handle the intent in the activity

    Also the scheme could be anything, but http scheme is recommended by google, so that both your app and the browser app can listen to clicks on the deeplinked url.

    Note : Don't forget to add android-app://yourpackage name/http/www.example.com/home/... in your web pages, if you want app linking.

提交回复
热议问题