Skip to content

Instantly share code, notes, and snippets.

@javieranton-zz
Created May 12, 2020 20:22
Show Gist options
  • Save javieranton-zz/ed18994ad1f5da3533518a5c31fe8458 to your computer and use it in GitHub Desktop.
Save javieranton-zz/ed18994ad1f5da3533518a5c31fe8458 to your computer and use it in GitHub Desktop.
import com.google.firebase.*;
import com.google.firebase.iid.*;
import com.google.firebase.messaging.*;
FirebaseOptions.Builder builder = new FirebaseOptions.Builder()
.setApplicationId("<applicationId> i.e X:XXXXXXXXXX:android:XXXXXXXXXXXXXXXXXXXXX")
.setApiKey("<private key>")
.setDatabaseUrl("https://yourFcmApp.firebaseio.com")
.setStorageBucket("yourFcmApp.appspot.com");
FirebaseApp.initializeApp(context(), builder.build());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment