OneSignal / OneSignal-Android-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal. https://onesignal.com
Other
604 stars 367 forks source link

background notification in android for onesignal #2155

Open S00raj-hcbs opened 1 month ago

S00raj-hcbs commented 1 month ago

How can we help?

how to handle background notification in android for onesignal sdk 5.1.17?

Code of Conduct

jkasten2 commented 1 month ago

@S00raj-hcbs you can create a OneSignal Android Notification Service Extension to do this.

S00raj-hcbs commented 1 month ago

this document not fulfill my requirement and it's incomplete document.

S00raj-hcbs commented 1 month ago

like Document like

jkasten2 commented 1 month ago

I see, the link should be point to this doc: https://documentation.onesignal.com/v9.0/docs/osnotification-payload

The doc was written for the 4.x.x version of this SDK, however most of the properties are the same with 5.x.x. We will look into fixes these docs.

In the meantime feel free to use the link above and the auto complete from Android Studio. If you would like a bit more detail you can look at the source of the interface here: https://github.com/OneSignal/OneSignal-Android-SDK/blob/5.1.15/OneSignalSDK/onesignal/core/src/main/java/com/onesignal/notifications/INotification.kt

S00raj-hcbs commented 1 month ago

give me proper document for onesignal notification so i can manage in my application.