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;
  }
}