1. 程式人生 > >Firebase介紹(只管寫程式碼,後臺交給Firebase)

Firebase介紹(只管寫程式碼,後臺交給Firebase)

Google為移動應用開發者們提供了大量的雲服務,而該公司於2014年收購的Firebase,也變成了面向移動開發者的一體化平臺。此前,Firebase就已經為移動應用開發者們提供了特定的平臺和SDK。不過現在,這項服務已經極大地擴充套件、帶來了一眾全新的功能、並與其它工具實現了更深入的雲集成——Google在今日召開的I/O 2016大會上宣佈了全新的Firebase。
這裡寫圖片描述

為什麼要使用Firebase?
Obviously it takes more than client side code to build a true web app. You’ll need a backend that handles a database, authentication, ajax, an accessible api, and you’ll need somewhere to host that backend. There are many things that make backend development easier like Ruby on Rails, or services like Heroku but there is still a lot of development time that goes into building these. Firebase takes care of most of the backend concerns and is dubbed a Backend as a Service (BaaS).

Firebase is also a realtime api utilizing web sockets for pushing state to your application. This means that an interactive app can be even more interactive as you don’t need to refresh the browser to get updates; they are pushed in real-time.

Firebase到底能幹什麼?

AdMob – integration with Google AdMob
AdMob —— 集成了谷歌 AdMob

AdWords – integration with Google AdWords
AdWords —— 集成了谷歌 AdWords

Analytics – a dashboard for monitoring user behavior, demographic segmentation, and campaign performance
統計分析(Analytics) —— 用於監控使用者行為、人群特徵細分、活動效果分析

Authentication – support for user authentication via email, Facebook, GitHub, Google Sign-In, and Twitter
認證(Authentication) —— 支援通過郵箱、臉書、github, 谷歌、特推等使用者驗證。

Crash Reporting – monitoring application’s errors across all devices. It is integrated with Analytics to evaluate user behavior upon application crash.
崩潰報告(Crash Reporting) —— 監控各類裝置上應用的錯誤。與統計分析特性整合,評估應用崩潰時的使用者行為

Database – a NoSQL database used to store JSON data
資料庫 —— 用於儲存 JSON 資料的 NoSQL 資料庫

Dynamic Links – deep links taking an user to the desired page within an application動態連結(Dynamic Links) —— 將使用者帶至應用內預期頁面的深度連結(deep links)

Hosting – a globally distributed CDN for web applications
託管(Hosting) —— 針對 Web 應用的全球 CDN

Indexing – used to index an application for Google Search
索引(Indexing) —— 對應用進行索引,用於谷歌搜尋

Invites – enables users to share information about an application with other users
邀請(Invites) —— 支援使用者與其他使用者分享有關應用的資訊

Messaging – this is the former Google Cloud Messaging (GCM) service that has been rebranded as Firebase Cloud Messaging (FCM)
訊息(Messaging) —— 即此前的 Google Cloud Messaging,後來被重新命名為 Firebase Cloud Messaging

Notifications – managing notifications sent to users
通知(Notifications) —— 管理髮給使用者的通知

Offline – enables applications to store data in a local cache so they can keep running while offline
離線(Offline) —— 支援應用在本地快取中儲存資料,這樣可以在離線時保持執行

Real time – data is saved to the cloud database in real time
實時(Real Time) —— 資料實時儲存至雲資料庫

Remote Config – enables developers to modify the behavior or appearance of an application without requiring users to download a new version of the app. This feature is used to change the application’s visual theme, address different user demographics, running A/B tests, etc.
遠端配置(Remote Config) —— 支援開發者在不要求使用者下載新版本 app 的情況下,修改應用的行為和外觀。該特性用於修改應用的視覺主題,滿足不同使用者群組的需求,執行 A/B 測試等。

Storage – storing user audio, pictures and video
儲存(Storage) —— 儲存使用者的語音、圖片和視訊

Synchronization – when data changes on a device, it is pushed to Firebase, then back to all related devices. Also, a device is automatically updated with the latest snapshot when coming online after being offline
同步(Synchronization) —— 當裝置上的資料變動時,將會推送至 Firebase,然後再推回到所有相關聯的裝置。另外,離線後重新線上使用時,裝置將自動更新至最近的快照

Test Lab – testing an application on real devices
測試實驗室(Test Lab) —— 在真實裝置上測試應用

支援多種程式語言
The Firebase SDK supports programming in C++, Java, JavaScript, JavaScript/Node.js, Objective-C, and Swift. Angular, Backbone, Ember and React are supported through bindings to the database. Google added a number of helper libraries: FirebaseUI, Geofire, Firebase Queue, FirebaseJobDispatcher. Their name indicates what their purpose is. Firebase also supports importing large JSON data sets and integration with ElasticSearch.

Firebase在國內的使用情況?
需要翻牆 你懂的。

建立自己的專案
這裡寫圖片描述