So now that the FirebaseInstanceIdService service is deprecated I'm unsure what to replace it with.
I previously had a service declared in the manifest like so:
<service
android:name=".fcm.FcmIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
</service>
And the service itself:
public class FcmIdService extends FirebaseInstanceIdService {
@Override
public void onTokenRefresh() {
// Create notification channel.
createFcmNotificationChannel();
}
}
If I remove the service I no longer receive notifications so I'm assuming I have to replace it with something else.
Thanks.
EDIT: This question differs from the proposed duplicate question by also covering the manifest declaration of the affected services which is still unclear to me.