init method

  1. @override
Future<void> init(
  1. PushClickAction onClickNotificationFunction
)
override

Developers should not use this field directly Initialize APPLE APNS Push

Implementation

@override
Future<void> init(PushClickAction onClickNotificationFunction) async {
  applePushConnector.configure(
    onLaunch: (RemoteMessage message) async {
      onClickNotificationFunction(message.data);
      return;
    },
    onResume: (RemoteMessage message) async {
      onClickNotificationFunction(message.data);
      return;
    },
  );
  return;
}