[問題] remote notification又一問

作者: valda (valda)   2014-11-05 16:03:30
如果我的app狀態是alive
不論在前景或在背景
只要接收到push notification時
user只要按下alert view
就會觸發didReceiveRemoteNotification()
我可以在didReceiveRemoteNotification()處理remote notification
若我的app狀態是close
只要接收到push notification時
user只要按下alert view
就會觸發didFinishLaunchingWithOptions()
就會觸發didFinishLaunchingWithOptions()處理remote notification
目前的問題是
如果使用者按的不是alert view
而是直接按下icon打開app
有啥delegate method是我可以用的
因為
didReceiveRemoteNotification()
和didFinishLaunchingWithOptions()
都無效
都沒辦法抓到remote push notification 的 payload
作者: kiii210 (HelloWorld!)   2014-11-05 21:11:00

Links booklink

Contact Us: admin [ a t ] ucptt.com