作者sdico (文)
看板MacDev
标题[问题] pushkit转firebase
时间Mon Jul 17 21:30:10 2017
程式本来是用pushkit运作远程通知
後来因为Android端用firebase, 所以想把iOS也转过来
目前push notification可以收到
但是是APP在背景的时候,直接在系统列跳出讯息
我想要的是:
当APP在背景(或从背景移除)时接收到firebase讯息
先在APP内处理後转成local notification
请问firebase可以做到这样吗?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.195.50.179
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MacDev/M.1500298212.A.B81.html
※ 编辑: sdico (123.195.50.179), 07/17/2017 21:30:49
1F:→ hearther: Push notification 并不会把app唤醒 所以不行 07/17 23:36
2F:→ yuanruo: 查Silent Remote Notifications然後自己实现local notif 07/18 01:44
3F:推 hijamoya: 你的app不在执行的时後就不能先处理...只能显示notifica 07/22 03:40
4F:→ hijamoya: tion 07/22 03:40
5F:推 iphone7pro: pushkit 送推播的话後台程式码有什麽差别吗? 10/06 17:57