Android - Show Custom Notification without default notification- Parse.com

Luis Ribeiro

Does exist a different way to send a push without show default notification (from Parse library)?

I've created a custom BroadcastReceiver to show notification with full message, but if I send json with "alert" parameter, the default notification is shown by Parse library.

For example:

{ "alert": "Both notifications will be shown", "url": "www.parse.com", "action" : "com.myapp.package.UPDATE_STATUS" }

and

{ "message": "Custom notification will be shown", "url": "www.parse.com", "action" : "com.myapp.package.UPDATE_STATUS" }

The first json shows default notification, because Parse library intercepts the "alert" parameter. The seconds json shows just my custom notification.

The second json would be perfect, but I send push notifications to iOS app too. So, I want to have the same json for Android and iOS. I want to send just one push.

Is it possible to use "alert" parameter and show only custom notification?

Thank you!! Regards

fingerup

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

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android - Show Custom Notification without default notification- Parse.com

From Dev

Custom Push Notification coming twice using Parse.com and Android

From Dev

Custom Push Notification coming twice using Parse.com and Android

From Dev

How to show custom text in Notification in Android

From Dev

Error ~ parse.com push notification android?

From Dev

Not receiving push notification on android with parse.com

From Dev

Creating custom android notification without RemoteView

From Dev

Parse.com disable push notification notification

From Dev

Android show a notification not working

From Dev

Android wear not show notification

From Dev

Android wear not show notification

From Dev

Show notification in Android 5.0.1

From Dev

Notification android show date

From Dev

Custom Notification is not displaying in Android

From Dev

Custom Notification is not displaying in Android

From Dev

Custom notification for android with buttons

From Dev

Android custom notification sound

From Dev

Custom notification Android does not show up the same on different devices

From Dev

Android, Push notification using parse.com, launches the app automatically

From Dev

RuntimeException on android app with parse.com push notification

From Dev

parse.com - Delete specific notification from status bar on android

From Dev

android notification show Image from string without unicode

From Dev

How to show Parse Push Notification in notification bar while application is running?

From Dev

Changing the default size of the notification (Android)

From Dev

show activity after notification Android

From Dev

show notification method change in android?

From Dev

Android:show list of data in notification

From Java

No custom sound with Android Firebase Notification

From Dev

How to create Custom Notification in android

Related Related

  1. 1

    Android - Show Custom Notification without default notification- Parse.com

  2. 2

    Custom Push Notification coming twice using Parse.com and Android

  3. 3

    Custom Push Notification coming twice using Parse.com and Android

  4. 4

    How to show custom text in Notification in Android

  5. 5

    Error ~ parse.com push notification android?

  6. 6

    Not receiving push notification on android with parse.com

  7. 7

    Creating custom android notification without RemoteView

  8. 8

    Parse.com disable push notification notification

  9. 9

    Android show a notification not working

  10. 10

    Android wear not show notification

  11. 11

    Android wear not show notification

  12. 12

    Show notification in Android 5.0.1

  13. 13

    Notification android show date

  14. 14

    Custom Notification is not displaying in Android

  15. 15

    Custom Notification is not displaying in Android

  16. 16

    Custom notification for android with buttons

  17. 17

    Android custom notification sound

  18. 18

    Custom notification Android does not show up the same on different devices

  19. 19

    Android, Push notification using parse.com, launches the app automatically

  20. 20

    RuntimeException on android app with parse.com push notification

  21. 21

    parse.com - Delete specific notification from status bar on android

  22. 22

    android notification show Image from string without unicode

  23. 23

    How to show Parse Push Notification in notification bar while application is running?

  24. 24

    Changing the default size of the notification (Android)

  25. 25

    show activity after notification Android

  26. 26

    show notification method change in android?

  27. 27

    Android:show list of data in notification

  28. 28

    No custom sound with Android Firebase Notification

  29. 29

    How to create Custom Notification in android

HotTag

Archive