<service     android:name=".java.MyFirebaseMessagingService"     android:exported="false">     <intent-filter>         <action android:name="com.google.firebase.MESSAGING_EVENT" />     </intent-filter> </service> AndroidManifest.xml 

Read more of this post