Android - Show Custom Notification without default notification- Parse.com -
does exist different way send push without show default notification (from parse library)?
i've created custom broadcastreceiver show notification full message, if send json "alert" parameter, default notification shown parse library.
for example:
{ "alert": "both notifications shown", "url": "www.parse.com", "action" : "com.myapp.package.update_status" }
and
{ "message": "custom notification shown", "url": "www.parse.com", "action" : "com.myapp.package.update_status" }
the first json shows default notification, because parse library intercepts "alert" parameter. seconds json shows custom notification.
the second json perfect, send push notifications ios app too. so, want have same json android , ios. want send 1 push.
is possible use "alert" parameter , show custom notification?
thank you!! regards
yes, replace :
pushservice.setdefaultpushcallback(this, youractivity.class);
to :
pushservice.startserviceifrequired(this);
parse broadcastreceiver no longer receive notifications.
https://www.parse.com/questions/how-suppress-push-notification-from-being-displayed
Comments
Post a Comment