Android how to create Custom URL scheme with the given format myapp://http://

后端 未结 3 713
忘了有多久
忘了有多久 2021-01-04 00:06

I have researched through most of the custom URL scheme Q&A and I have not found my possible answer.

I want my app to be launched by clicking a certain URL in t

3条回答
  •  忘掉有多难
    2021-01-04 00:39

    That's a misuse of the URI scheme and is invalid. The HTTP URL you want to pass is a piece of data and should thus be sent in the query string.

    myapp://somehost/action?url=http%3A%2F%2Fwww.name.com%2Fpath%2Fpath2%2F
    

提交回复
热议问题