Leanplum Firebase Services won't load
fede1608 opened this issue · 0 comments
I'm updating the leanplum sdk to 4.0.0 and moving to FCM but I'm getting this error messages when my app starts:
04-20 09:28:27.711 15184-15233/com.xxx E/[ERROR][Leanplum]: [com.leanplum.internal.LeanplumManifestHelper::checkComponent::252]: Push notifications requires you to add the service com.leanplum.LeanplumPushFirebaseMessagingService to your AndroidManifest.xml file.Add this code within the section:
<service
android:name="com.leanplum.LeanplumPushFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
<category android:name="com.xxx" />
</intent-filter>
</service>
04-20 09:28:27.725 15184-15233/com.xxx E/[ERROR][Leanplum]: [com.leanplum.internal.LeanplumManifestHelper::checkComponent::252]: Push notifications requires you to add the service com.leanplum.LeanplumPushFcmListenerService to your AndroidManifest.xml file.Add this code within the section:
<service
android:name="com.leanplum.LeanplumPushFcmListenerService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
<category android:name="com.xxx" />
</intent-filter>
</service>
04-20 09:28:27.726 15184-15233/com.xxx E/[ERROR][Leanplum]: [com.leanplum.LeanplumFcmProvider::isManifestSetup::86]: Failed to setup Firebase Messaging, check your manifest configuration.
I've added this to my gradle file
implementation 'com.leanplum:leanplum-fcm:+'
implementation 'com.leanplum:leanplum-location:+'
And I've tried manually adding the services and also letting the manifests merge but it always throws the same error, I've checked the debug manifest that's generated, and both services actually appear there.
Specifications
- Version: Leanplum sdk 4.0.0
- Platform: Android 8.1.0
- Subsystem: Google pixel 2 XL
I went back to Leanplum sdk 3.0.2 for now.