Extracted Leanplum specific code from LeanplumPushFirebaseMessagingService into LeanplumFirebaseServiceHandler containing:
onCreate
onNewToken
onMessageReceived
To implement custom FirebaseMessagingService you have to copy LeanplumPushFirebaseMessagingService and include the following code in your manifest file:
<!-- Disable the default Leanplum FCM message handling service -->
<service
xmlns:tools="http://schemas.android.com/tools"
android:name="com.leanplum.LeanplumPushFirebaseMessagingService"
android:enabled="false"
tools:replace="android:enabled"/>
3. Removed `LeanplumCloudMessagingProvider.isManifestSetup` functionality as it is not necessary anymore because receivers and services are added to library's manifest file which is merged into the project's manifest.
4. Replaced deprecated usage of Firebase API with the recommendations by Google
Background
Extracted Leanplum specific code from
LeanplumPushFirebaseMessagingService
intoLeanplumFirebaseServiceHandler
containing:onCreate
onNewToken
onMessageReceived
To implement custom
FirebaseMessagingService
you have to copyLeanplumPushFirebaseMessagingService
and include the following code in your manifest file:<service android:name="your.package.Copy_of_LeanplumPushFirebaseMessagingService" android:enabled="true" android:exported="false">