Jeff Wu's Note

Tags · Phonegap plugin

Home

About

Archives

loading..
Cordova-iOSPhonegap pluginPush NotificationAzure Notification Hub

[Cordova Week-3] Cordova Push Notification - iOS

前言上一篇我們介紹了如何建立 FCM 並將 API 金鑰設定至 Azure,最後完成訊息推播測試,本篇將繼續說明 iOS 訊息推播要如何設定,主要的步驟有: 建立 iOS 推播通知憑證 上傳 p12 與設定 Azure Notification Hub 進行推播測試 建立 App Identity (App ID)iOS 平台需要先進入 Apple Developer 的管理介面建立 AppId,並啟動 Push Notifications 的功能。另外,要準備一台 MacOS 裝置,透過鑰匙圈 ( Keychain ) 工具建立 CSR ( Certificate Signing Request ),將檔案上傳轉換成憑證並下載,點擊加入鑰匙圈後匯出 p12 檔,將 p12 檔上傳至 Azure Not..

Read more
loading..
Cordova-AndroidCordova-iOSPhonegap pluginPush Notification

[Cordova Week-2] Cordova Push Notification - Android

前言在 Mobile App 的開發中,推播通知已經是不可或缺的 App 功能之一,大部分的商業 APP 都一定有推播通知的功能,因此,這次要介紹如何安裝與使用 Phonegap Plugin Push 並透過 Azure Notification Hub 實現 Android 與 iOS 的即時推播訊息功能。 什麼是 Phonegap-plugin-push?Phonegap-plugin-push 提供使用單一獨立的 API 來支援接收及處理原生 push notification。但這不是指我們可以發送單一個訊息並在不同作業系統上都能收到。基本上 Android 使用的是 FCM,iOS 則使用 APNS,而且他們的 payload 都很不一樣。即使在 Android 及 iOS 都使用 FCM,也是..

Read more