简体   繁体   中英

how to use the intent anchor to launch my app with extra data(parameters) in android

I have ever tried to launch my app using URI schema in javascript like this:

window.location = "myapp://api/image?imageurl=hogehoge" 

but it failed in android.I don't know why. it's ok in iphone...

so I changed to use the intent anchor to launch my app in android as described here. I'm able to get it to launch my app using this syntax,

<a href="intent://#Intent;scheme=http;package=com.example.myapp;end">Launch my app</>

but if I use the intent anchor , how can I pass the extra data ("api/image?imageurl=hogehoge") ?

maybe i can add "S.imageurl=hogehoge" to the href but how can i pass this → "api/image?"

尝试这样的事情:

<a href="intent://api/image?imageurl=hogehoge#Intent;scheme=http;package=com.exampl‌​e.myapp;end">Launch my app</a> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM