androidpush-notificationonesignalsilentpush

Silent push notification and normal push notification using OneSignal


Is it possible to implement silent push notifications and normal push notifications together in one Android application using OneSignal?

I have checked with silent notifications and normal notifications separately, but can't implement it together.

How can I solve this issue?


Solution

  • I think you need to implement the NotificationExtenderService and decide based on the notification type you set up what you want to do with the incoming notification. If you want to handle it return false in the receiver, otherwise true

    More detail https://documentation.onesignal.com/docs/android-customizations#section-background-data-and-notification-overriding