setFirebaseAsActiveService method

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

Set Firebase Cloud Messaging as the active notification service.

This will disable any other active notification services (polling or foreground). Use this when you want to use Firebase for notifications instead of the built-in services. Returns true if the operation was successful.

Implementation

@override
Future<bool> setFirebaseAsActiveService() async {
  final result = await methodChannel.invokeMethod<bool>(
    'setFirebaseAsActiveService',
  );
  return result ?? false;
}