Notification permission denied
[Error: Exception in HostObject::get(propName:RNFBMessagingModule):
java.lang.NullPointerException: Firebase Messaging component is not
present]
I used different methods but still issues is there. In code we used this package
@react-native-firebase/messaging
2
Answers
Resolved with below solution :
<service android:name="com.google.firebase.components.ComponentDiscoveryService" android:directBootAware="true" android:exported="false" >
<meta-data android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" />
<meta-data android:name="com.google.firebase.components:com.google.firebase.installations.FirebaseInstallationsRegistrar" android:value="com.google.firebase.components.ComponentRegistrar" /> </service>
please considering going through following check points.
if all of above checks out then look for the core cause