简体   繁体   中英

How To Send XMPP Chat Message notification to android as well as IOS

i Have implemented XMPP chat in IOS Swift 3.0 Now My question is how to send notification to device While we kill the app.

When the Application is in background XMPP is connected so that i can call local notification.

But what to do when one lost XMPP connection how to send push Notification.

is there is any server where we can initiate to send notification to particular device.

Please help regarding that

You have to create a Service . That Service will run forever and connection to XMPP server will not be lost unless network on device is lost or turned off.

Also manage your notification code inside your Service class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM