开发者

Correct way to launch a terminated app via a local notification

开发者 https://www.devze.com 2023-03-22 19:26 出处:网络
Can we start running the app using Local Notification once the app is terminated? Myproblem is that when my app is in background and the local notificat开发者_Go百科ions come then the app works fine.

Can we start running the app using Local Notification once the app is terminated?

My problem is that when my app is in background and the local notificat开发者_Go百科ions come then the app works fine.

but once app is killed or terminated from background and then if local notifications come, then my app crashes.

What could be done?

Please Help and Suggest

Thanks


in your

didFinishLaunchingWithOptions

method in the app delegate you should handle launching the application if the local notification was received. Are you doing that?


The area to look for is definitely launchOptions for didFinishLaunchingWithOptions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号