Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'com.google.gms.google-services'
- implementation 'com.google.firebase:firebase-core:XX.X.X'
- implementation 'com.google.firebase:firebase-messaging:XX.X.X'
- <string name="google_app_id" translatable="false">X:XXXXXXXXXX:android:XXXXXXXXXXXXX</string>
- public static void start(Context context){
- FirebaseOptions options = new FirebaseOptions.Builder()
- .setApplicationId("X:XXXXXXXXXX:android:XXXXXXXXXXXXX") // Required for Analytics.
- .setApiKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") // Required for Auth.
- .build();
- FirebaseApp.initializeApp(context, options);
- }
- LibName.start(getApplicationContext());
Add Comment
Please, Sign In to add comment