FirebaseApp initialization unsuccessful
I found the answer in The Google Services Gradle Plugin
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="default_web_client_id" translatable="false">1035469437078-e8mr503bun5eaevqctn4u807q4hpi44s.apps.googleusercontent.com</string>
<string name="gcm_defaultSenderId" translatable="false">1035469437078</string>
<string name="firebase_database_url" translatable="false">https://myapp.firebaseio.com</string>
<string name="google_app_id" translatable="false">1:1035469437078:android:73a4fb8297b2cd4f</string>
<string name="google_api_key" translatable="false">AIzaSyFE3G2eN0XZPl-IeEvZhzKOAgC9vy9imVE</string>
<string name="google_storage_bucket" translatable="false">myapp.appspot.com</string>
</resources>
gcm_defaultSenderId:
project_info/project_number
google_app_id:
{YOUR_CLIENT}/client_info/mobilesdk_app_id
google_api_key:
{YOUR_CLIENT}/services/api_key/current_key
google_storage_bucket:
project_info/storage_bucket
firebase_database_url:
project_info/firebase_url
default_web_client_id:
{YOUR_CLIENT}/oauth_client/[first client_type 3]
Unity3d FirebaseApp initialization unsuccessful
You could use Firebase Push Notifications without creation additional plugin. But the flow is a little bit tricky. Here are quick steps:
In the Unity Editor. In the Build Settings select Google Android
Project flag and Export your project. Make sure that your bundle id
correspond to the bundle id at the Firebase Console.In the Android Studio. Import your Unity project. IMPORTANT: Don't
Open, Import!Setup .gradle scripts and add google-services.json file as described here.
Build project from Android Studio.
Android App, Firebase initialization successful but the website is still failing
Both your Smartphone and Computer Should be Connected to the Internet.
& If you are in restricted a restricted area you should use VPN on both.
App initialization very slow: FirebaseApp initialization unsuccessful
I would suggest you to exclude the firebase
group using gradle
:
compile('com.google.android.gms:play-services-ads:9.0.2') {
exclude group: 'com.google.firebase', module: 'firebase-common'
}
compile('com.google.android.gms:play-services-gcm:9.0.2') {
exclude group: 'com.google.firebase', module: 'firebase-common'
}
Or, simply apply a global exclude configuration, like this:
configurations {
all*.exclude group: 'com.google.firebase', module: 'firebase-common'
}
Hope it helps :)
Related Topics
How to Update Notification with Remoteviews
How to Implement Uncaughtexception Android
Android: How to Integrate a Decoder to Multimedia Framework
How to Display Long Messages in Logcat
Setrotation(90) to Take Picture in Portrait Mode Does Not Work on Samsung Devices
Dialogfragment with Clear Background (Not Dimmed)
Android:Static Variable Null on Low Memory
How to Make an Fm Radio Application in Android
Android - Communicating Between Two Devices
Android Webview for Facebook Like Button
Getting Results of Nearby Places from User's Location Using Google Maps API in Android
How to Use Scale Gesture Detector for Pinch Zoom in Android
Android Fragment Onrestoreinstancestate