I have created a chat application in iPhone with Ejabberd 16.03. If end user mobile app is not running in the foreground/background, an alert is sent each time a message is received via push notification by Ejabberd. In the payload of this notification i got JID of user.
Now, i want to add one more field into this payload like Profile_Name. But i don't know the following things:
1) which module is use to send the push notifications?
2) How Ejabberd is sending these push notifications?
3) From where Ejabberd is getting the device token and certificate file(.pem)?
4) How can i configure the payload for the notifications?
I have done some R&D but i get nothing special. I have found many modules for push notifications, but i think there is no need of adding these modules. Because i am getting the push notifications well. I just want to customize the payload of these notifications.
Please tell me how can i do this.