initializePushNotifications method

  1. @override
PushNotificationService initializePushNotifications(
  1. Getter<BuildContext?> context,
  2. AppInfo appInfo
)
override

Implementation

@override
PushNotificationService initializePushNotifications(
    Getter<BuildContext?> context, AppInfo appInfo) {
  final pushService = PushNotificationService(
    context,
    appInfo,
    userStateStream: globalUserStateChanged,
    convertMessage: this.pushMessageBodyConverter,
    sendDevicePushToken: this.sendDevicePushToken,
  );

  // final res = sunny.get<BuildContextResolver>(context: context);
  // res.registerSingleton(context, _push);
  return pushService;
}