Skip to content

Commit

Permalink
Merge pull request #10 from vbalagovic/stage
Browse files Browse the repository at this point in the history
Push notifications fix
  • Loading branch information
vbalagovic authored Apr 24, 2023
2 parents 04a548a + 5a15802 commit 2591c4a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/main_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ void mainCommon(options) async {
);
FirebaseAnalytics analytics = FirebaseAnalytics.instance;
final pushNotifService = PushNotificationsService();
await pushNotifService.registerNotification();
await pushNotifService.initiateToken();

if (Platform.isIOS) {
Future.delayed(const Duration(milliseconds: 500), () async {
await pushNotifService.setupInteractedMessage();
await pushNotifService.registerNotification();
});
} else {
await pushNotifService.setupInteractedMessage();
await pushNotifService.registerNotification();
}

//SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
Expand Down

0 comments on commit 2591c4a

Please sign in to comment.