React-native-push-notification: Can't see notifications in the iOS tray, but still listen to the sound

Created on 31 Aug 2017  路  6Comments  路  Source: zo0r/react-native-push-notification

When in foreground the app does not show notification or sound, but when fired in the background (both with PushNotification.localNotification and PushNotification.localNotificationSchedule) it does not appear in the tray. I have tried with different meta configurations, but still nothing.

Also I noticed that the PushNotification.localNotificationSchedule is scheduling always immediately, but I have not isolated it properly.

I am using react-native@^0.47 and [email protected].

Hope it leads somewhere.

Most helpful comment

@jsdario i'm petty sure i have 3 cases permissions. Still don't know why it not work. :) btw, thank you.

All 6 comments

i have same issue, + 1,

It happened when testing a reinstalled app, that lacked permissions. To get more insights about this in iOS I logged and added UX around notification permissions. It is annoying but we have to make sure that we always count with notification permissions to prompt the note.

@jsdario you mean: requestPermissions: true, in PushNotification.configure({...})? If not, can you show me how to do it? Thanks.

Not like that. But that would simplify the problem.

I mean that we have to make sure that we are testing in an app that has notification permissions for all 3 cases (sound, badge, alert). The moment this was a bug for me, the reason was that I _lacked_ those permissions.

@jsdario i'm petty sure i have 3 cases permissions. Still don't know why it not work. :) btw, thank you.

same issue

Was this page helpful?
0 / 5 - 0 ratings