objective-c - iOS中如何不点通知栏来获取系统通知
迷茫
迷茫 2017-04-17 17:41:59
0
3
339

想实现一个本地闹钟功能,添加为本地提醒,到时间会有系统通知,如果点该通知会走本地通知的代理,能获取到该通知信息,但是如果是直接点图标或者滑屏进入不会走改该通知。请问这种情况如何处理呢,大家帮帮忙

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
大家讲道理

As far as I know so far, the proxy method related to LocalNotification cannot be triggered by clicking the icon or swiping the screen to enter the App.

You can get all LocalNotifications through [[UIApplication sharedApplication] scheduledLocalNotifications], but you need to understand the timeliness.

You can also store related Notifications yourself, and then do related processing when entering the App, which is more flexible.

大家讲道理

These two situations will not trigger the proxy method of local notification

黄舟

What you want to do after getting the notification, just do the corresponding operation in applicationDidFinishLaunching in AppDelegate. The premise is to judge that the time is up

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!