Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 1.0.0
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: macOS Sierra
Node Version: v5.0.0
Xcode version: Xcode 8.2.1 Build version 8C1002
// Initialize Firebase
export const firebaseConfig = {
apiKey: "AIzaSyC7XBxxxxxxxxxxxxxxxxxZP3fkkzU",
authDomain: "your-new-web-project.firebaseapp.com",
databaseURL: "https://your-new-web-project.firebaseio.com",
storageBucket: "your-new-web-project.appspot.com",
messagingSenderId: "8000000000003"
};
The sample application used email authentication so make sure you configure it in the firebase console.
To simplify this solution, I have hardcoded the user that is used for authentication; you will need to add that user or create your own and modify the code.
https://github.com/aaronksaunders/firebaseStorage2/blob/master/src/pages/home/home.ts#L36
firebase.auth().signInWithEmailAndPassword('[email protected]', 'password')
The application requires specific plugins to work so please be sure to run ionic state restore
before trying to run the sample. This should reload the necessary plugins.
[Video not Updated Yet] source code for youtube video on Ionic2 & Firebase Image Upload