33
Views
3
Comments
Don't see OneSignal notifications when app is closed
Question
Application Type
Mobile

Hi,

I manage to send notifications using OneSignal when the app is open (I catch the notifications with the OneSignalOnNotificationReceived and OneSignalOnNotificationOpened callback methods), but when the app is closed (not in focus) I got nothing. I'm attaching a screenthot from the app permissions. 


WhatsApp Image 2024-01-03 at 11.21.58.jpeg
2023-05-30 10-05-13
Lourenço Matalonga

Hello @Ron Ben ,

It appears that you're experiencing an issue where OneSignal notifications are not being received when the app is closed. The screenshot indicates that the app has permissions for notifications set correctly, but if notifications aren't coming through when the app is not in focus, you may need to check a few things:

  1. Ensure that background data for the app is not restricted.
  2. Verify that the app has permission to run in the background.
  3. Check for any battery optimization settings that might be preventing the app from receiving notifications when closed.
  4. Review the OneSignal documentation for any specific settings required for background notifications on mobile devices.

If these settings are correct, it might be worth checking the OneSignal dashboard and the system logs for any errors that could provide more information about why notifications are not being received when the app is closed.

Best regards,

Lourenco Matalonga

UserImage.jpg
Ron Ben

Thanks. I will go ahead and check one by one. As the mobile device does receive notification of other apps (whatsapp for example) while they are closed, I guess that the phone battary preferences is not the issue. 

2023-05-30 10-05-13
Lourenço Matalonga

Keep us updated if you get is solved.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.