react-native-admob icon indicating copy to clipboard operation
react-native-admob copied to clipboard

(Solution) React Native App Stops Working after Install Admod Firebase

Open TheR20 opened this issue 5 years ago • 3 comments

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.

TheR20 avatar Sep 03 '20 01:09 TheR20

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

ahmad923245 avatar Jan 08 '21 17:01 ahmad923245

No Mate it does not work still the application crashes.

NinjaAniket avatar Jan 24 '21 17:01 NinjaAniket

No Mate it does not work still the application crashes.

hi did you resolve this issue beacuse i am also facing same issue

Abdullahkhan1996 avatar Apr 01 '21 12:04 Abdullahkhan1996