china521
V2EX  ›  问与答

com.lampa.startapp 这个 cordova 的插件, 在 Android 下如何直接打开 taobao 的 APP

  •  
  •   china521 · Jan 17, 2016 · 4029 views
    This topic created in 3769 days ago, the information mentioned may be changed or developed.

    iOS 下已经知道是直接调用 taobao://连接, android 下不知道如何弄, android 新手, 耽误高手几分钟,多谢了,送币哦

    2 replies    2016-01-17 20:26:49 +08:00
    china521
        1
    china521  
    OP
       Jan 17, 2016
    `navigator.startApp.start([["com.taobao.taobao", "com.taobao.tao.detail.activity.DetailActivity"], ["https://item.taobao.com/item.htm?id=42040550373"]], function(message) {
    alert(message); // => OK
    },
    function(error) { /* error */
    alert(error);
    });`

    知道怎么打开商品了,就是店铺不知道呢还.
    china521
        2
    china521  
    OP
       Jan 17, 2016   ❤️ 1
    自己又解决了,发上来,帮助不会的朋友

    navigator.startApp.start([["com.taobao.taobao", "com.taobao.tao.shop.router.ShopUrlRouterActivity"], ["https://shopxxxxxxxx.taobao.com"]], function(message) {
    alert(message); // => OK
    },
    function(error) { /* error */
    alert(error);
    });
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3268 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:32 · PVG 21:32 · LAX 06:32 · JFK 09:32
    ♥ Do have faith in what you're doing.