fix:ios环境下打开应用时获取VoIPToken
This commit is contained in:
parent
4a3a228a80
commit
4bae1d1e98
@ -66,12 +66,13 @@ FutureOr<void> main() async {
|
||||
// runApp(MultiProvider(providers: [
|
||||
// ChangeNotifierProvider(create: (_) => DebugInfoModel()),
|
||||
// ], child: MyApp(isLogin: isLogin)));
|
||||
CallKitHandler.setupListener();
|
||||
String? token = await CallKitHandler.getVoipToken();
|
||||
print('获取到的VoIP Token: $token');
|
||||
if (Platform.isIOS) {
|
||||
CallKitHandler.setupListener();
|
||||
String? token = await CallKitHandler.getVoipToken();
|
||||
print('获取到的VoIP Token: $token');
|
||||
}
|
||||
|
||||
runApp(MyApp(isLogin: isLogin));
|
||||
}, onException: (FlutterErrorDetails details) async {
|
||||
debugPrint('FlutterErrorDetails ${details.exceptionAsString()}');
|
||||
});
|
||||
|
||||
if (AppPlatform.isAndroid) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user