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