XCode : why launchOptions in didFinishLaunchingWithOptions always nil?

前端 未结 4 1939
时光取名叫无心
时光取名叫无心 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 19:00

    My conclusion and suggestion if it can hep anyone, refer below

    Every time you have new build to test your app, you must test the notification click actions with the notifications generated by latest app. If you keep on testing of click actions with old notifications generated by older build then It will behave unexpectedly (means somehow its able to launch the app but it will not return you any valid info in didFinishLaunchingWithOptions:)

提交回复
热议问题