How do I launch my app via a custom URL in an email

后端 未结 2 920
慢半拍i
慢半拍i 2020-12-09 12:33

I\'m adding a custom URL using the android:scheme in my intent filter as follows

  
    

        
相关标签:
2条回答
  • 2020-12-09 12:51

    You need to send your email in HTML, with your link in an <a> tag:

    <a href='myscheme://myhost?data=whatever'>Launch
    

    App

    Automatic link parsing is almost certainly only done with links starting with http:// or www., and it varies from email client to email client anyway.

    Ok, I tried that and it didn't work. The only solution I can offer is to actually use http:// with a link going to your site, to a specific app page, with the same GET parameters. You can register an intent-filter to intercept this with the app and handle it appropriately, and if the user doesn't have the app, the web page instructs them to install it.

    0 讨论(0)
  • 2020-12-09 13:07

    Link to your website and then redirects to "myscheme://myhost?data=whatever"

    0 讨论(0)
提交回复
热议问题