[问题] 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