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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -