Quickstart-ios: FIRMessaging receiving notification in invalid state 2

Created on 11 Oct 2016  路  12Comments  路  Source: firebase/quickstart-ios

swift 3.0
ios 10

i got "FIRMessaging receiving notification in invalid state 2" error

how can i?

Most helpful comment

What version of Xcode are you using? This may occur if your app does hot have push notifications enabled. Could you double check that App > Capabilities > Push Notifications are on.

All 12 comments

What version of Xcode are you using? This may occur if your app does hot have push notifications enabled. Could you double check that App > Capabilities > Push Notifications are on.

my notifications work and I see this also, i iOS 9.3.5 Xcode 8. what does it mean?

FIRMessaging receiving notification in invalid state 2

ios 10.0.2
xcode 8

and i already enable push notification(App > Capabilities > Push Notifications).

please help me.

I'm getting the same warning after implementing "content_available" in my notification (but still, everything works great). Is this a warning we should worry about?

@pkuklis do you still have this warning? if not , how did you get rid off it?

content_available is interesting - that's really there for background push. Can you share any more details about what your implementation looks like (ideally - a minimal repro!)

Thanks! Is your app set up to run in the background (e.g. music playing or similar?)

To answer the general question - the message is harmless, so you can ignore it. I'll file an issue internally to silence it.

@ianbarber It's all in foreground. Thanks Ian, that's great to hear! 馃憤

Closing this, we are working on cleaning up the logs.

@kroikie I have the same problem but i need the app receive notifications in background.

@saninaimayer what version of the Firebase SDK are you using? If you are using CocoaPods, can you check the Podfile? There have been updates to how messages are handled when they are received, so testing this on the latest SDK would be useful. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abdulKarim002 picture abdulKarim002  路  6Comments

mrithula-quintet picture mrithula-quintet  路  3Comments

glorment picture glorment  路  3Comments

mingsai picture mingsai  路  5Comments

svachmic picture svachmic  路  5Comments