registerPushNotificationHandlers static method

Future<void> registerPushNotificationHandlers({
  1. AndroidSettings? androidSettings,
  2. IOSSettings? iosSettings,
})

Implementation

static Future<void> registerPushNotificationHandlers(
    {AndroidSettings? androidSettings, IOSSettings? iosSettings}) async {
  if ((Platform.isAndroid) && (androidSettings != null)) {
    await registerAndroidPushNotificationHandlers(androidSettings);
  }

  if ((Platform.isIOS) && (iosSettings != null)) {
    await registerIOSPushNotificationHandlers(iosSettings);
  }
}