Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,问下你是怎么生成dart代码的 #3

Open
gwhcn opened this issue Mar 5, 2020 · 6 comments
Open

你好,问下你是怎么生成dart代码的 #3

gwhcn opened this issue Mar 5, 2020 · 6 comments

Comments

@gwhcn
Copy link

gwhcn commented Mar 5, 2020

No description provided.

@yohom
Copy link
Member

yohom commented Mar 5, 2020

https://fluttify.com/#/

@gwhcn
Copy link
Author

gwhcn commented Mar 5, 2020

这钉钉插件ios无法回调,能否解决

@yohom
Copy link
Member

yohom commented Mar 6, 2020

@yshye 来瞅瞅

@gwhcn
Copy link
Author

gwhcn commented Mar 6, 2020

因为这个插件没有钉钉登陆功能,我加上了,安卓功能正常了,iOS回调的onResp不被回调

@gwhcn
Copy link
Author

gwhcn commented Mar 6, 2020

已经解决了
`

  • (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar {
    self = [super init];
    if (self) {
    [registrar addApplicationDelegate:self];//加这一句
    .........
    }
    }

// NOTE: 9.0以后使用新API接口

  • (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options {
    if ([DTOpenAPI handleOpenURL:url delegate:self]) {
    return YES;
    }
    return NO;
    }
    //还有这两个方法

  • (BOOL)application:(UIApplication *)application
    openURL:(nonnull NSURL *)url
    sourceApplication:( NSString *)sourceApplication
    annotation:(nonnull id)annotation
    {
    if ([DTOpenAPI handleOpenURL:url delegate:self]) {
    return YES;
    }

    return NO;
    }
    `

@yshye
Copy link
Member

yshye commented Mar 8, 2020

@415593725 你可以签入下,或者等我加一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants