A
A
Anton Ulanov2016-09-12 01:07:54
MongoDB
Anton Ulanov, 2016-09-12 01:07:54

How to work with rabbitmq from cordova?

Good day gentlemen and ladies. Did I understand correctly that in order to control the message queue and their delivery (re-sending) you need to use rabbitmq on the client side? If not, point me in the right direction. Thank you all in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2016-09-12
@zoonman

Not certainly in that way. RabbitMQ is a message queuing system that runs on a server.
Read how notifications work
https://firebase.google.com/docs/cloud-messaging/
The application on the client must send a delivery confirmation to the server, for this you need to send a data message so that the OS wakes up the application and the application sends a confirmation of receipt.
The logic on the server should be like this - sent a notification to the device, wait for confirmation for 15 minutes, if not, then send it again. If there is still no confirmation, we mark the device as unavailable and no longer send notifications. After the user launches the application, we send a request to the server and activate the device.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question