cloudbase-framework icon indicating copy to clipboard operation
cloudbase-framework copied to clipboard

Flutter SDK 登录认证在windows端无法使用

Open GiantappMan opened this issue 5 years ago • 5 comments

参考文档: https://docs.cloudbase.net/quick-start/flutter.html#di-5-bu-chu-shi-hua-huan-jing-bing-diao-yong-ni-ming-deng-lu

代码演示:

  // 初始化
  CloudBaseCore core = CloudBaseCore.init({
    'env': 'livewallpaper-0sikk',
    // 填写您的移动应用安全来源凭证
    // 生成凭证的应用标识必须是 Android 包名或者 iOS BundleID
    'appAccess': {
      // 凭证
      'key': 'flutter',
      // 版本
      'version': 'xxxxx'
    }
  });

 // 获取登录对象
      CloudBaseAuth auth = CloudBaseAuth(core);
      CloudBaseAuthState authState = await auth.getAuthState();
      // 唤起匿名登录
      if (authState == null) {
        await auth.signInAnonymously().then((success) {
          // 登录成功
          print(success);
        }).catchError((err) {
          // 登录失败
          print(err);
        });
      }

报错:

No implementation found for method getAll on channel plugins.flutter.io/package_info

GiantappMan avatar Oct 22 '20 06:10 GiantappMan

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.58. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 22 '20 06:10 issue-label-bot[bot]

Flutter是全平台的,希望SDK不要区别对待windows和web端

GiantappMan avatar Oct 29 '20 14:10 GiantappMan

@binggg 去年的bug,为啥到现在还没有动静呢?

shenghanqin avatar Mar 22 '21 09:03 shenghanqin

今天的flutter - 腾讯云开发匿名登录 还是相同的问题 MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/package_info)

qklhk avatar Mar 22 '21 09:03 qklhk

我提交工单问了一下,需要flutter版本2.10.0及以下的,我用2.10.0可以成功登录

1021048313 avatar Jun 22 '21 13:06 1021048313