設定 Google Apps
OneSignal 使用 Google 服務來傳送 notification 去 Chrome 和 Firefox.
所以需要到 Google Developers account 建立一個 project.
首先登入 Google Developers 按「建立專案」。

可以使用任意名稱,伺服器用美國中部會是一個不錯的選擇。

成功建立 project 之後,就可以看到 project ID,大家記下這個 number,設定過程中需要用到。

之後按「啟用和管理 API」,尋找 Google Cloud Messaging,並啓動這個 API.



再到憑証按 Create credentials,選擇 API 金鑰,再選擇「伺服器」金鑰


填上任意名稱後就可以建立,拿到 API 金鑰了。
這個金鑰是另一個需要記下的字串,一會需要用到。

