如何通过向上滑动杀死whatsapp后实现什么应用程序(iOS版)通知处理 [英] how to achieve whats app (iOS version) notification handling after killing whatsapp by swipe up

查看:131
本文介绍了如何通过向上滑动杀死whatsapp后实现什么应用程序(iOS版)通知处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,在搜索我所知道的内容后,在iOS中,一旦应用程序被杀,通知将无法处理,并且在通过点击应用程序图标启动该应用程序之后。



<我希望实现whatsapp的功能,即



1)我从多任务扫描中杀死whatsapp。
2)我收到whatsapp 1新消息推送通知。
3)然后没有启动whatsapp(通过应用程序图标或通知)我断开移动数据/ wifi或任何互联网连接。
4)断开所有连接后,我通过APP ICON启动whatsapp(而不是通知)。
5)然后我发现这些通知消息已经在顶部聊天中显示为带有消息计数的新消息。



现在,我关心的是,如何即使在应用程序被杀之后,应用程序是否会处理推送通知。

解决方案

PushKit是唯一的解决方案......



对于参考: - https ://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/PushKit_Framework/


Till now after searching what i know is, in iOS , notifications cannot be handled, once the app is killed , and after that app is launched by tapping app icon.

i want to achieve what whatsapp does, i.e.

1) i kill whatsapp from multitasking swipe up. 2) i receive whatsapp 1 new message push notification. 3) then without launching whatsapp(through app icon or through notification) i disconnect mobile data/ wifi or any internet connection. 4) after disconnecting all connections, i launch whatsapp BY LAUNCHING IT FROM APP ICON(and not from notification). 5) then i find that those notification message is already shown at the top chat as the new message with message count.

Now, my concern is, how does whats app handle push notification, even after app is killed.

解决方案

PushKit is the only solution...

For ref:- https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/PushKit_Framework/

这篇关于如何通过向上滑动杀死whatsapp后实现什么应用程序(iOS版)通知处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆