Firebase notification


#1

Hi all,
I use the nativescript firebase plugin written by @eddy to push notification. It work only if the application state is activated (foreground). When the application is suspended or closed, I don’t receive any notification sent from firebase notification UI. Once the application is launched, all notifications are pushed
Any ideas ?


#2

I feel like on iOS you have to be testing on device. Are you doing this?


#3

Of course Jen, I’m testing on device. The notification is received when the application is in foreground state, but in background nothing. Work well with android !


#4

Hmm. I wonder if opening an issue on Eddy’s plugin repo would be the most effective way to find out.


#5

OK. I wanted to be sure that it’s a potential bug before.
Thanks


#6

Hi, you need to add this on your info.plist

<key>UIBackgroundModes</key>
	<array>
		<string>remote-notification</string>
	</array>

#7

Already done. But It works since the last update of @eddy