Notifications don't come through when the app is closed

后端 未结 2 2039
轻奢々
轻奢々 2021-01-21 06:21

I\'ve got an Android app with push notifications set up using Urban Airship. The notifications work fine while my app is open but I need to still receive notifications when my a

2条回答
  •  Happy的楠姐
    2021-01-21 06:40

    It turns out the notifications worked fine whether the app was running or not. The problem was when the app was force-closed.

    I think the actual problem is something along the lines of the BroadcastReceiver being killed when the app is force closed but I'm not sure.

    This is just to close the question off because it's unlikely to be solved now that I realise the problem is different to the question title.

提交回复
热议问题