0
votes

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

1

1 Answers

-1
votes

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.