Coder Social home page Coder Social logo

Comments (14)

JarvanMo avatar JarvanMo commented on September 4, 2024

将支付宝添加到白名单。

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

-(void) _isAliPayInstalled:(FlutterMethodCall*)call result:(FlutterResult)result {
BOOL isAliPayInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"alipay://"]];
result(@(isAliPayInstalled));
}

你这里面写成 alipays 了

from tobias.

JarvanMo avatar JarvanMo commented on September 4, 2024

代码没问题的。

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

支付宝的urlscheme 就是alipay 呀,你写的是alipays,你自己的这个example,把TobiasPlugin改了以后就可以了,不然添加白名单也没用

from tobias.

JarvanMo avatar JarvanMo commented on September 4, 2024

你自己跑跑我的demo看看行不行。

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

跑了是不行的,然后改了就可以了

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

支付啥的是没问题的 我是说判断是否安装的这个方法一直返回false

from tobias.

JarvanMo avatar JarvanMo commented on September 4, 2024

这个方法肯定没有问题。

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

你跑一下嘛 大哥,要是没问题的话,我也不会来提issue呀

from tobias.

JarvanMo avatar JarvanMo commented on September 4, 2024

1.更新一下2.有人用过这个这个方式了。

from tobias.

YuzuWang avatar YuzuWang commented on September 4, 2024

1.0.0+1 这个是最新版的吧

from tobias.

xuetongiqn avatar xuetongiqn commented on September 4, 2024

@JarvanMo 你的isAliPayInstalled方法在ios下确实有问题。支付的调起是正常的,但是检测是否安装失败了。

from tobias.

JarvanMo avatar JarvanMo commented on September 4, 2024

from tobias.

chaosphinx avatar chaosphinx commented on September 4, 2024

@xuetongiqn @YuzuWang 作者说的没问题,但是文档也确实没有写明。应该在 info.plist 里的 <key>LSApplicationQueriesSchemes</key> 下加一行:<string>alipays</string>,然后检测就有效了。

from tobias.

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.