rollback/cancel the android-gcm notification -


is there way rollback notification request placed gcm server?

as in, consider gcm-message-request placed gcm server. if user sees message in web before coming online in mobile, gcm request should rolled back. , user should not see notification in mobile.

there no built in mechanism such rollback in case describe. can try implementing - when server notices message viewed in web, can send gcm message device data represents need rollback. when process message, should clear notifications created app on device (i'm not sure if that's possible, you'll have check).

there such mechanism in similar case - if user has multiple android devices, , send gcm message of them (using new user notifications feature), once user views notification on 1 device, automatically removed other devices.

  • if message has been handled on 1 device, gcm message on other devices dismissed. example, if user has handled calendar notification on 1 device, notification go away on user's other devices.
  • if message has not been delivered yet device , has been handled, gcm server removes unsent queue other devices.

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -