Open anatoly-spb opened 1 month ago
@anatoly-spb
Keep in mind that background/silent are not always the best fit, so it is recommend you provide more details on your goal to see if there are better options.
We don't have a specific guide on doing bridging like this but you could use some like Ionic App Events if you need get some information from Java / Kotlin native to JavaScript. https://capacitorjs.com/docs/v2/plugins/android#app-events
How can we help?
I want to receive background/data/silent notification in my Ionic Application based on onesignal-cordova-plugin@5.1.4 and Capacitor:
. According to documentation https://documentation.onesignal.com/docs/data-notifications I have implemented NotificationServiceExtension for Android:
But what should I call inside onNotificationReceived instead of YYYYYYYYYYY to pass this notification to Ionic Application based on Capacitor and what should I write instead of XXXXXXXXXX to subscribe on background/data/silent notification?
Thanks in advance, Anatoly Shirokov
Code of Conduct