javascript - How to properly design a reliable acknowledgment mechanism using Parse Server? -


i working on app scenario occur

  1. parse server sends silent push notification tell app wake , pull new data
  2. app sends server request new data , server responds
  3. server doesn't know if data received app.....

how solve last step? how make sure app gets chance acknowledge receipt of data?

thank you

i in way:

  1. when app send server request of new data, send id code too
  2. server store id
  3. when app ends data receiving, send server receive ok message id.
  4. when server receive "receive ok" message app, delete list id of app.

in way server knows how many app ask data transfer how many app receive data successfully.

the app id, data transfer, can change between transfer session .


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -