Handling Push Notifications when App is NOT running

后端 未结 8 2155
感动是毒
感动是毒 2020-11-29 16:57

When my App is not running and receives a Push Notification, if I click on that notification, the App is launched - but then it doesn\'t prompt the

8条回答
  •  时光取名叫无心
    2020-11-29 17:14

    Try going to the didReceiveRemoteNotification method and handling it there. In there you can check for the application states by doing conditionals for the applicationState, for example checking if it's UIApplicationStateActive or others.

提交回复
热议问题