OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[question]: Foreground at iOS not Working

Open walidabdelaziz opened this issue 10 months ago • 4 comments
trafficstars

How can we help?

WARNING: OSNotificationLifecycleListener:onWillDisplayNotification timed out. Display was not called within 25.000000 seconds. Continue with display notification: 0 VERBOSE: finishProcessingNotification: Fired! VERBOSE: Notification display type: 0 VERBOSE: notificationReceived called! opened: NO VERBOSE: onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler: VERBOSE: onesignalUserNotificationCenter:willPresentNotification:withCompletionHandler: Fired! WalidAbdelaziz_5459 sent a message VERBOSE: OSNotificationWillDisplayEvent.preventDefault called.

OneSignal.Notifications.addForegroundWillDisplayListener((event) {
    print('Foreground Notification: ${event.notification.title}');
    event.preventDefault();
    event.notification.display();
  });

I got those and notifications is never shown at foreground at iOS while it's working at android anda t background I receive it at iOS

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

walidabdelaziz avatar Jan 12 '25 18:01 walidabdelaziz