react-native-fcm icon indicating copy to clipboard operation
react-native-fcm copied to clipboard

Getting notifications but they aren't showing trough notification center

Open KBepo opened this issue 10 years ago • 8 comments

Please include following information for better support

What verion of RN and react-native-fcm are you running? 0.35.0 latest

What device are you using? (e.g iOS9 emulator, Android 6 device)? iPad mini 9.3.5

Is your app running in foreground, background or not running? Both

Advanced: Have you tried adding break point in native handlers to see if message gets delivered? It does get delivered.

So. I've been able to send notifications but they aren't showing in notification center. Once I press home button and app goes to background console output says disconnected from FCM and once I enter application I get connected to FCM. I've sent notification trough Postman and firebase returned success. I did manage to catch notifcation on reopening app and when in foreground but for some reason I don't get them in notification center.

Any help would be highly appreciated! Thanks in advance.

KBepo avatar Nov 02 '16 14:11 KBepo

I faced the same behaviour when I forgot to configure push notifications in the app. That is:

  1. create APNS certificates,
  2. upload p12 files to Firebase console in messaging tab,
  3. actually turn on Push stuff in XCode and itunes,
  4. resave provisioning profiles and rebuild. I don't know why app received data from firebase at all, but it did, without notification in status bar.

frmrgr avatar Nov 11 '16 00:11 frmrgr

Yeah tnx for your input I already solved my problem but forgot to close it.

KBepo avatar Nov 11 '16 09:11 KBepo

Having same problem, so what do you mean by - actually turn on Push stuff in itunes?

almadsen avatar Nov 18 '16 09:11 almadsen

@almadsen It's googlable, step 12 here.

frmrgr avatar Nov 18 '16 14:11 frmrgr

You mean iTunes connect I guess. But still, I believe I've got all my ducks in a row, but still no push notifications.

almadsen avatar Nov 18 '16 15:11 almadsen

I misunderstood FirebaseAppDelegateProxyEnabled and set it to NO which blocked notifications from showing up

savioseb avatar May 02 '17 18:05 savioseb

@frmrgr how did you resolved "I don't know why app received data from firebase at all, but it did, without notification in status bar." I'm having the same issue in iOS 11.2.1 and XCode 9

George-Tony avatar Apr 03 '18 10:04 George-Tony

@George-Tony Not sure what you mean. On iOS, payload goes straight to app if it is open, I just do alert from js in that case.

frmrgr avatar Apr 03 '18 13:04 frmrgr