[問題] App背景移除時點Local Notification

作者: sdico (文)   2017-10-13 11:24:43
點擊local notification會觸發
application(_ application:UIApplication,
didReceive notification: UILocalNotification)
我想要根據點擊的通知訊息來做一些事情
如果App是在背景下,都運作正常
但是如果App把他從背景移除(上滑掉)
這時候點LocalNotification好像只會單純開啟App
試過寫變數,寫user default, 寫檔都沒有反應
請問我應該怎麼做?
作者: singergod (神)   2017-10-13 12:33:00
didFinishLaunchingWithOptions UILocalNotification
作者: sdico (文)   2017-10-13 13:45:00
感謝 原來走不一樣的路
作者: ssds (useful)   2017-10-13 20:40:00
感謝解答 也遇到一樣問題

Links booklink

Contact Us: admin [ a t ] ucptt.com