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
605 stars 370 forks source link

background notification in android for onesignal #2155

Closed S00raj-hcbs closed 3 weeks ago

S00raj-hcbs commented 4 months ago

How can we help?

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

Code of Conduct

jkasten2 commented 4 months ago

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

S00raj-hcbs commented 4 months ago

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

S00raj-hcbs commented 4 months ago

like Document like

jkasten2 commented 4 months 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 4 months ago

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

jinliu9508 commented 3 weeks ago

Hello @S00raj-hcbs this doc would give you the details on how to handle notifications in background. Please let us know if you have any more questions regarding the background notification.