Droidcon 2015 - Android BaaS hands-on
-
Upload
giulio-roggero -
Category
Software
-
view
240 -
download
1
Transcript of Droidcon 2015 - Android BaaS hands-on
Android BaaS hands-on
Droidcon 2015
Torino
Giulio Roggero, Federico Oldrini, Jacopo Giola
Join http://goo.gl/8V2OZC to test the App
Developers need …
• Data
• Files, photos and videos
• Push notifications
• Users
• Advertising
• Analytics
• External data
… and don’t waste time on part of the system that are always
the same!
Pros of a BaaS
• No server setup for each App
• No common code replica for each App
• Simple API
• Indipendence by the device OS
REST APIs
Push Servers
Apple
MicrosoftSDK
Mobile
Code
Push
Notifications
NoSQL
Collections
Storage
File
SystemSchedulerBackup
System
Data
Connectors
Data Modeler & ConfiguratorBackoffice for App CMS
App
Cloud
Data
Collections
and Offline
Sync
UsersFiles /
ResourcesSocial Advertising
In App
Purchase
Validators
Analytics EventsPlugins and
Extensions
BaaS
Architecture
example
esempio
#simple read
curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -X
GET https://demo.baas.makeitapp.eu/test
#create/update
curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -d
‘{"field1": "ciao mondo"}’ -X POST https://demo.baas.makeitapp.eu/test
#simple filter
curl --header "secret:secret" -H "Accept: application/json" -H "Content-Type: application/json" -X
GET -G https://demo.baas.makeitapp.eu/test --data-urlencode '{"field1": "ciao mondo"}'
Android – iOS chat example
MKAppInstanceMKQuery
MKCollection
MKFileCollection
MKUser
makeitapp.baas android & iOS SDK
makeitapp.baasDroidconMessage
collectionFile collection User collection
DCNMessage
- Sender
- Message
- Attachment