How can I cancel a notification with xtify? -
i'm using xtify send gcm notification. receive onmessage event want maintain notification, modify , send new one. receive 2 notifications. how can cancel first one?
if decide not show it, works. if show notification, appears two.
thank you.
if want receive notification info onmessage , show notification (without showing sdk default notification), have set notification action none (in apis or website), example:
url: http://api.xtify.com/2.0/push
content-type: application/json
http entity body:
{ "apikey": "xxxxxx-xxxxx-xxxx-xxxxx", "appkey": "xxxxxx-xxxxx-yyyy-xxxxx", "xids": ["xxxxxxxxxxxxxxxxxx"], "sendall": true, "content": { "subject": "greetings earthlings", "message": "take me leader", "action": { "type": "none" // visual , audible alerts suppressed } } }
the behavior of actions documented here:
none: visual , audible alerts suppressed. utilize feature send info application without disrupting user.
xtify
No comments:
Post a Comment