Serverless mobile applications with Firebase talk given at MADG (Madrid Android Developer Group). Some slides are different than the talk given at Droidcon Spain.
Talks about authentication and real time databases.
com.google.firebase.iid.FirebaseInstanceId. D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization. I/FirebaseInitProvider: FirebaseApp initialization successful W/GooglePlayServicesUtil: Google Play services out of date. Requires 9080000 but found 8489434 W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED
switch (result) { case ConnectionResult.SERVICE_MISSING: case ConnectionResult.SERVICE_DISABLED: case ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED: break; }
match /{allPaths=**} { allow read, write: if request.auth != null; } match /images/{imageId} { // only images less than 5MB allow write: if request.resource.size < 5 * 1024 * 1024 && request.resource.metadata.contentType.matches('image/.*'); } } }
= rootRef.child("recipes"); String id = buildId(); Recipe recipe = new Recipe(id, "Eggs with potatoes", "Yummy eggs with potatoes"); recipes.child(id).setValue(recipe);