capacitor-background-runner
capacitor-background-runner copied to clipboard
Unable to dispatchEvent on android
I am trying to dispatch an event on receiving a notification while the app is closed.
On iOS this is demonstrated by adding BackgroundRunnerPlugin.dispatchEvent(event: "remoteNotification", eventArgs: userInfo) to the AppDelegate on didReceiveRemoteNotification
How is this achieved on android?
Same problem. I believe steps is extend FirebaseMessagingService, then override onMessageReceived, and then....what? May be need to call BackgroundRunnerPlugin.dispatchEvent somehow but it does not provide any static methods