Growing up as Cloud Database, today supported by Google, it presents itself as a powerful platform for mobile and web applications.
These slides give you an overview and an introduction to the Firebase NoSQL database, how to integrate it into your Android app and how to put it into a realtime context!
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
A realtime infrastructure for Android apps: Firebase may be what you need..and even more!
1. Are you looking for a realtime infrastructure
behind your mobile app?
Well, Firebase may be what you need..and even more!
DroidconIT2016 – Alessandro Martellucci
3. Open Reply
• Reply is a leading IT Services Company, with offices in Italy, Germany, UK, Benelux,
USA, Brazil, France and Poland.
• Open Reply is the company of Reply Group focused on open source software,
multichannel solutions and mobile applications.
• From Rome to Milan, our team is based on a young team of over 40 engineers 100%
focused on mobile development (iOS, Android & Windows Phone).
• We are specialised in broadcasting, banking, Android OS Customisation, IoT and
M2M.
We are hiring! Contact us at jobs@reply.eu
DroidconIT2016 – Alessandro Martellucci
4. Lifecycle 0.2
A binder which let you manage async operations against
Android components lifecycle
• Seamless execution async-rotation-response
• Easily integration with third-party library
• No crashes after Activity/Fragment rotation
• Fragment transaction management
martellux/Lifecycle com.martellux:lifecycle:0.2.0
DroidconIT2016 – Alessandro Martellucci
5. Android Programmazione Avanzata
• Multi-screen and multi device development
• Functional Programming with RxJava
• Testing & Code Mantainance
• Android Wear
• Bluetooth Classic & Low Energy
• Google Cast and Chromecast
DroidconIT2016 – Alessandro Martellucci
6. Agenda
1. What is Firebase
2. NoSQL JSON database
3. Demo
4. Android integration
5. Working with data
6. Working offline
7. FirebaseUI binding
8. Rules management
9. User authentication
10. Pricing
DroidconIT2016 – Alessandro Martellucci
7. What is Firebase
• MBaaS
• Data synchronization
• Hosting (static assets, Node.js)
• Authentication (Google, Facebook, Email & Password, Anonymous)
• Realtime database (JSON)
DroidconIT2016 – Alessandro Martellucci
22. Write or replace data (1/2)
{
…,
status: {
connectedUsers: 10,
...
},
...
}
Online users
DroidconIT2016 – Alessandro Martellucci
Firebase mFirebaseRef = new Firebase(“https://droidconit2016-demo.firebaseio.com”);
int connectedUsers = countConnectedUsers();
mFirebaseRef.child(“status/connectedUsers”).setValue(connectedUsers);
1) Naviga.ng by subnodes
23. Write or replace data (2/2)
Firebase mFirebaseRef = new Firebase(“https://droidconit2016-demo.firebaseio.com/status”);
int connectedUsers = countConnectedUsers();
mFirebaseRef.child(“connectedUsers”).setValue(connectedUsers);
2) Naviga.ng direct to node
DroidconIT2016 – Alessandro Martellucci
Firebase mFirebaseRef = new Firebase(“https://droidconit2016-demo.firebaseio.com/status”);
Map<String, String> statusMap = new HashMap<String, String>();
statusMap.put(“connectedUsers”, String.valueOf(countConnectedUsers());
mFirebaseRef.setValue(statusMap);
3) Using Map