mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-05-20 08:47:23 +08:00
修复3.1之后版本用户未授权报错 (#76)
This commit is contained in:
@ -12,6 +12,8 @@ const String _TENCENT_APPID = 'your tencent appId';
|
||||
|
||||
void main() {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
// 3.1.0 之后的版本请先获取权限
|
||||
await Tencent.instance.setIsPermissionGranted(granted: true);
|
||||
Tencent.instance.registerApp(appId: _TENCENT_APPID);
|
||||
runApp(MyApp());
|
||||
}
|
||||
|
Reference in New Issue
Block a user