discontinuedPackage tim_ui_kit_push_plugin has been discontinued and replaced by tencent_cloud_chat_push.

isSupport method

  1. @override
Future<bool> isSupport()
override

Developers should not use this field directly Determin whether the device support Google Service and Google FCM

Implementation

@override
Future<bool> isSupport() async {
  try{
    googleFCMMessaging.setAutoInitEnabled(true);
    final res = await googleFCMMessaging.deleteToken();
    return await googleFCMMessaging.isSupported();
  }catch(e){
    print("TUIKitPush | Dart | Do not support Google Firebase, as ${e.toString()}");
    return false;
  }
}