作者c14646780 (ABCDFGG)
看板MacDev
標題[問題] Push notifications 推播通知問題
時間Wed Nov 30 18:12:36 2016
使用Push Notification推播
目前已經可以經由APNs推播通知到手機上
現在要做的是
推播通知後
APP在背景的形況
手機點選推播,可以直接跳到APP裡指定的頁面
每種推播可以開啟不同頁面
找了許多資料
但是都沒有成功
請問是要如何使用呢
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 219.87.183.253
※ 文章網址: https://webptt.com/m.aspx?n=bbs/MacDev/M.1480500758.A.FD1.html
1F:推 darktt: 看你的推播的peyload有沒有帶其他可辨識的資訊 11/30 18:27
2F:→ LFimi: push帶指定字串if下去就好了啊 11/30 19:41
3F:→ shinrenpan: 如果不是點推播通知, 而是直接點 icon, 不會觸發. P 11/30 20:41
4F:→ shinrenpan: M 就要叫了. 11/30 20:41
5F:推 ppppman: appdelegate去接你推下來的資訊去做你要的事 12/01 00:04
6F:推 Imnotyourson: 在 AppDelegate 的 didFinishLaunchingWithOptions 12/05 02:04
7F:→ Imnotyourson: options 查 UIApplicationLaunchOptionsRemoteNotif 12/05 02:05
8F:→ Imnotyourson: icationKey 12/05 02:05
9F:→ Imnotyourson: 如果拿得到 Notification,你就可以做你想做的事 12/05 02:06