Open 009topersky opened 1 year ago
I have the same problem, any examples to help?
I have proposed the following PR https://github.com/OneSignal/OneSignal-Cordova-SDK/pull/876 to support data/background messages on Android
It seems to me we have to migrate to Firebase SDK from OneSignal SDK, because there are no one to maintain this project.
How can we help?
Good day everyone!
We've been using OneSignal for quite some time and implemented it for several projects. We migrated the version of OneSignal from 2.x.x into 3.x.x and it seems fine.
The problem is that we have some implementation in silent notification wherein there are no
headings
andcontents
.To simulate the issue.
STEP 1: We sent the data from the OneSignal REST API
POST: https://onesignal.com/api/v1/notifications
HEADERS:
Authorization: Bearer <ONESIGNAL_REST_API_KEY>
PAYLOAD:
STEP 2: In ionic 3 framework under the upon initialization of app based on the documentation https://documentation.onesignal.com/docs/ionic-sdk-setup.
My goal is that the application should receive silent notifications even if the app is idle or in the background.
We already checked this documentations: https://documentation.onesignal.com/docs/service-extensions#section-notification-extender-service and https://documentation.onesignal.com/docs/data-notifications
but there are no specific docs that pertain to the implementation of backgrounds/silent notifications.
Sample codes and implementations could help us solve the issue.
Thanks. Have a nice day!
Code of Conduct