Hi Everyone. 

I need to send the notification DeviceToken  to external server , which later will send back push notifications. 

I just want to get notifications DeviceToken  and callback when notifications arrive.

Is there any way of doing it ?


Regards,

Anahit 


I am sure that this is something you can do. You will most likely have to write your own plugin. Something like this from https://www.npmjs.com/package/cordova-plugin-sms can process incoming SMS.  

Stacey Levine wrote: Isn't there any existing forge component ?

I am sure that this is something you can do. You will most likely have to write your own plugin. Something like this from https://www.npmjs.com/package/cordova-plugin-sms can process incoming SMS.  



Hi,

You can use Firebase or OneSignal to send notifications from server to device. Can this help?


Regards

Paulo Cação wrote: Hi Paulo. No I just want to get deviceToken. I don't need to send notification, I just need to receive notification on mobile, to do that I need to get DeviceToden and send it to my server.


Hi,

You can use Firebase or OneSignal to send notifications from server to device. Can this help?


Regards



So a device token is a per app and per device unique token created to send. If you are sending notifications from an external server, then you will have to get the information form there. In the forge, the pushwoosh and onesignal  plugins will create their own device tokens in order to send those for the notification.