Notifications don't come through when the app is closed

后端 未结 2 2014
轻奢々
轻奢々 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条回答
  • 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.

    0 讨论(0)
  • 2021-01-21 06:49

    is your projects package really named "mypackage" ? and is your receiver etc. in that package? Because it looks like all "myPackage" should be repalced with "com.urbanairship"

    0 讨论(0)
提交回复
热议问题