how to achieve whats app (iOS version) notification handling after killing whatsapp by swipe up

假装没事ソ 提交于 2019-12-09 16:40:56

问题


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.


回答1:


PushKit is the only solution...

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



来源:https://stackoverflow.com/questions/36278649/how-to-achieve-whats-app-ios-version-notification-handling-after-killing-whats

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!