Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

An example application showing how to upload picture from the gallery or from camera to Firebase using Ionic 3 and Angularfire2. 📸

Notifications You must be signed in to change notification settings

0nza1101/AngularFire2-Ionic3-PictureUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple app exemple showing how to upload image from gallery or from camera to Firebase with Firebase, AngularFire2-rc4 and Ionic 3.

If you want test the project first type :

npm install

Don't forget to change firebaseConfig in /src/app/app.module.ts

    export const firebaseConfig = {
      apiKey: 'YOUR_API_KEY',
      authDomain: 'YOUR_DOMAIN',
      databaseURL: 'YOUR_DATABASE_URL',
      storageBucket: 'YOUR_STORAGE',
      messagingSenderId: "YOUR_MSGINGID"
    };

Make sure you have installed the Android SDK

Then install platform with

ionic cordova platform add android
ionic cordova run android

or make sure you have installed Xcode

ionic cordova platform add ios
ionic cordova run ios

You need to turn on anonymous login in your Firebase console in order to test it or change firebase.auth().signInAnonymously() from src/pages/home/home.ts to firebase.auth().signInWithEmailAndPassword('newuser@mail.com', 'password') or whatever signIn method you want.

About

An example application showing how to upload picture from the gallery or from camera to Firebase using Ionic 3 and Angularfire2. 📸

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published