Push notifications not working when app is closed

#1

Hello. I am trying to make push notifications work when the app is closed. It works perfectly when the app is open and also when the app is in the background but not when the app is closed. Is there a way to make this work? Any workaround of some sort to get this to work?

Push notification not working when standalone app is terminated
#2

Hey @charlesoma,

What do you mean by not working? You aren’t receiving the push notification when the app is terminated/closed?

Cheers,

Adam

#3

Hi @adamjnav, thanks for your response. Yes I’m not receiving push notifications when the app is terminated. I send push notifications but nothing happens when the app is closed.

#4

Understood. How are you sending the payloads? Can you try sending it with our notif testing tool to see if that works for you?

#5

I understand Expo doesn’t support background tasks. Are push notifications able to work at all when the app is terminated?

#6

Oh and I’m getting the same behaviour when I use the expo notif testing tool. It works and the app receives the notification when it’s open, but nothing happens when the app is terminated

#7

fortnite

#8

I don’t understand.

#9

Please is this function available in expo yet? If yes what do I need to do to make it work please?

#10

Hey @charlesoma,

Receiving push notifications while the app is terminated or backgrounded is certainly available and it should work out of the box. When you are experiencing this issue, are you testing your app in the Expo Client or as a standalone app? Also, is this occurring on iOS, Android or both platforms? Additionally, what SDK version is your project running?

#11

I am experiencing this issue in my standalone app for android. I’m building for android so I do not need to test for iOS. SDK is 27.1.1

closed #12

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.