Flutter SDK 登录认证在windows端无法使用
参考文档: 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
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.
Flutter是全平台的,希望SDK不要区别对待windows和web端
@binggg 去年的bug,为啥到现在还没有动静呢?
今天的flutter - 腾讯云开发匿名登录 还是相同的问题 MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/package_info)
我提交工单问了一下,需要flutter版本2.10.0及以下的,我用2.10.0可以成功登录