Git Product home page Git Product logo

Comments (12)

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

看不懂你这一堆是什么

from flutter_alibc.

karedem avatar karedem commented on August 16, 2024

openByUrl接口增加参数 nativeFailMode: AlibcNativeFailMode.AlibcNativeFailModeJumpH5,
schemeType: AlibcSchemeType.AlibcSchemeTaoBao

from flutter_alibc.

karedem avatar karedem commented on August 16, 2024

第一个参数 : 唤起Native APP失败后用H5打开
第二个参数 : 指定打开淘宝APP
如有疑问请再次打开iss

from flutter_alibc.

qq329401134 avatar qq329401134 commented on August 16, 2024

第一个参数 : 唤起Native APP失败后用H5打开
第二个参数 : 指定打开淘宝APP
如有疑问请再次打开iss

唤起淘宝打开是可以,但是我想强制的用H5打开,特别是IOS不论怎么设置,每次都是会唤起淘宝

from flutter_alibc.

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

可以做,但暂时不做,因为会增加业务复杂度,需要给自定义webview,还要考虑flutter能给webview做配置,太麻烦了,且iOS废弃UIWebview,百川还是UIwebview参数,暂时不想做。
如有需要可以自己做,修改原生即可,思路如下。
1.设置isneedpush(ios独占)为true,自定义webview
2.判断openUrl那个接口调用的百川方法,返回值是否为1
3.push新的webview
4.照常返回预期,抛给flutter

from flutter_alibc.

qq329401134 avatar qq329401134 commented on August 16, 2024

可以做,但暂时不做,因为会增加业务复杂度,需要给自定义webview,还要考虑flutter能给webview做配置,太麻烦了,且iOS废弃UIWebview,百川还是UIwebview参数,暂时不想做。
如有需要可以自己做,修改原生即可,思路如下。
1.设置isneedpush(ios独占)为true,自定义webview
2.判断openUrl那个接口调用的百川方法,返回值是否为1
3.push新的webview
4.照常返回预期,抛给flutter

不太懂IOS开发,没接触过,我这个应该和#7的需求一样吧

from flutter_alibc.

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

理论上是一样,不过我不了解百川的业务,无法测试

from flutter_alibc.

qq329401134 avatar qq329401134 commented on August 16, 2024

理论上是一样,不过我不了解百川的业务,无法测试

嗯嗯 我看了他的应该一样,只不过它需要拦截一些参数,我是直接用H5的打开就行

from flutter_alibc.

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

所以我就不太想做,想等阿里支持wk再放

from flutter_alibc.

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

实在想不通为啥会强制拉h5,什么场景能有这个需求。。。

from flutter_alibc.

qq329401134 avatar qq329401134 commented on August 16, 2024

实在想不通为啥会强制拉h5,什么场景能有这个需求。。。

我的优惠券不想要别人转发,所以要自定义一个H5,可以免登录领取但是然后禁止分享,这样。

from flutter_alibc.

XingXiaoWu avatar XingXiaoWu commented on August 16, 2024

你开个新iss把

from flutter_alibc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.