I am integrating OneSignal native code into a capacitor app.
I’m using the Quasar Framework, which uses Capacitor.
I can receive notifications and process them on the swift side of things. My receive-notification-logic resides in AppDelegate file.
I now want to pass the notification data over to Capacitor. So when the user logs in, I can retrieve his/her/their OneSignal id and send it to my API.
Or the other way around: When AppDelegate knows the OneSignal ID, trigger an event so the bridge can listen to this and send it via event or in a window variable to the Vue code.
Is there any way to achieve this?
I would be very grateful for any help.