initializePushNotifications method
PushNotificationService
initializePushNotifications(
- Getter<
BuildContext?> context, - 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;
}