XCode : why launchOptions in didFinishLaunchingWithOptions always nil?

前端 未结 4 1949
时光取名叫无心
时光取名叫无心 2020-12-09 18:35

I want my app to do specific things when the app is launched by a click on a notification. I want to do these specific things when the app is already running into background

4条回答
  •  忘掉有多难
    2020-12-09 18:57

    Please forgive me, I am still new when it comes to Apple's Push Notification service, but I did some reading through their documentation and my guess is that there may be something in the creation of your local notification that is causing the problem.

    I would double check how you are creating your local notification with Apple's Example as shown here in Listing 2-1 just to rule out that possibility. Since some of the code that is used for creating your local notification isn't displayed to us in this thread, it makes it difficult to assess if the instantiation of your local notification is indeed correct. It could end up being as simple as something being wrong with the fire date or something else in the notification not being set up correctly.

提交回复
热议问题