天天看點

如何使用SAP雲平台的Notification服務給Android應用推送通知消息

登入SAP Cloud Platform Mobile Services management cockpit:

在Mobile Application清單裡,選擇之前建立好的Wiz App:

打開User Registration标簽頁:

指定需要推送到移動應用上的Notification文本:

之前使用SAP Cloud Platform Android SDK建立的Android應用,就收到了這條Notification:

如果我們測試的應用目前處于背景運作狀态,則來自SAP Cloud Platform的Notification推送到達移動裝置後,表現形式如下:

點選手機上這條推送消息清單,就能将收到推送消息的應用轉換到前台運作狀态(foreground mode):

SAP Cloud Platform提供的這種通知服務,是采用AlertDialog實作的。

本文來自雲栖社群合作夥伴“汪子熙”,了解相關資訊可以關注微信公衆号"汪子熙"。