OpenFlutter / nautilus

阿里百川电商Flutter插件。
Apache License 2.0
130 stars 28 forks source link

使用`nautilus.openUrl(pageUrl: "https://taoquan.taobao.com/");`可以往里面传销毁方法给H5调用吗? #6

Closed hekaiyou closed 5 years ago

hekaiyou commented 5 years ago

现在使用nautilus.openUrl打开淘宝H5授权页面以后,没办法自动关闭openUrl打开的WebView,作者是怎么实现的呢?

JarvanMo commented 5 years ago

看源代码。

hekaiyou commented 5 years ago

是传这个taoKeParams就可以了吗?

_openUrl() {
    nautilus.openUrl(
        pageUrl:
            "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2165762428&activityId=5698d91c0b474d9caf88279009bda4f3",
        taoKeParams: nautilus.TaoKeParams(
            unionId: "", subPid: "mm_26632322_6858406_23810104", pid: "mm_26632322_6858406_23810104", adzoneId: "57328044"));
  }
JarvanMo commented 5 years ago

我不懂业务上的事情。我也没有用过百川。

hekaiyou commented 5 years ago

那如果单纯插件上看,是只能让用户手动关闭WebView吗?

JarvanMo commented 5 years ago

nautilus只是调用了百川SDK。至于什么手动不手动我不清楚。

JarvanMo commented 5 years ago

而且我已经说过了,我并没有用过百川SDK。

fuiyu commented 5 years ago

@hekaiyou 我集成的,在初始化的时候闪退了, uncaught exception 'NSInvalidArgumentException', reason: '+[AlibcTradeCommonSDK alibc_initMonitor]: unrecognized selector sent to class 0x105d594a0',不知道是哪里集成错了