javascript - How to properly design a reliable acknowledgment mechanism using Parse Server? -
i working on app scenario occur
- parse server sends silent push notification tell app wake , pull new data
- app sends server request new data , server responds
- 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:
- when app send server request of new data, send id code too
- server store id
- when app ends data receiving, send server receive ok message id.
- 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
Post a Comment