How do I pass parameters to android Intent in new scheme on chrome?

后端 未结 4 1459
陌清茗
陌清茗 2020-12-02 12:44

I have a web app calling a native app on android via an iframe intent which does not work in chrome 25 according to the following....

https://developers.google.com/c

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 13:09

    Intents are not working after 4.4.4, So this is what i am doing for my app.

    created custom scheme to launch my activity in the AndroidManifest.xml with the following intent filter

    1)

     
      
    
      
      
    
      
    
    

    2) Construct market url with fallback url which opens your app through custom scheme created above.

    market://details?id=<>&url=<>://yourdomain.com?encoded(p1=v1&p2=v2....etc)

    this opens the store if your app is not installed, and opens the app with the intent data if the app is already installed, with your decoded parameters.

    Hope this helps

提交回复
热议问题