Open TheR20 opened 4 years ago
Sometimes when you add the library from Admod Firebase your app crash well here is the solution:
1- You did not create your firebase.js file. Solution: Create in the root the file firebase.js and add the next information.
//Change the XXXXXX With the ID u get from admod (you can delete the android or IOS in case you will not use it) "react-native": { "admob_android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx", "admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx" }
2- Your proyect can find the ApplicationID or AdmodApplicationID or FirebaseApplicationID Solution: Go to -> ./node_module/@react-native-firebase/admod/android/src/main/AndroidManifest.xml here you have a tag for meta-data change ir for:
<- the ID from Admod you have <meta-data
change to.
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-999996863233~999999283982739"/> <- the ID from Admod you have <meta-data
Hope it helps.
after install react-native-firebase/admob application not running
No Mate it does not work still the application crashes.
No Mate it does not work still the application crashes.
hi did you resolve this issue beacuse i am also facing same issue
Sometimes when you add the library from Admod Firebase your app crash well here is the solution:
1- You did not create your firebase.js file. Solution: Create in the root the file firebase.js and add the next information.
//Change the XXXXXX With the ID u get from admod (you can delete the android or IOS in case you will not use it) "react-native": { "admob_android_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx", "admob_ios_app_id": "ca-app-pub-xxxxxxxx~xxxxxxxx" }
2- Your proyect can find the ApplicationID or AdmodApplicationID or FirebaseApplicationID Solution: Go to -> ./node_module/@react-native-firebase/admod/android/src/main/AndroidManifest.xml here you have a tag for meta-data change ir for:
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="[FirebaseAppID}"/> <- the ID from Admod you have <meta-data
change to.
Hope it helps.