Self-Managed Integration
To make integrations easier the PushSDK automatically includes an extension of the FirebaseMessagingService
class. However, you may have your own service and need to forward calls to the PushSDK in several scenarios including:
Conflicts with other SDKs
Conflicting third party development solutions
Our messaging service conflicts with your existing architecture
Integrating Your Own Messaging Service
First you will want to remove the service automatically added by the PushSDK and add your own to the app manifest file.
Once you have added your own messaging service you'll also be required to place calls to the PushSDK to invoke the methods that are no longer automatically handled. If you do not implement all of the following methods the PushSDK may not function properly.
The methods you must call manually are:
PushSDK.handleOnNewToken(token: String)
PushSDK.handleOnMessageReceived(message: RemoteMessage)
Messaging Service Example
Last updated