天天看點

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

登入SAP Cloud Platform Mobile Services management cockpit:

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

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

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

打開User Registration标簽頁:

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

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

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

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

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

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

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

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

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

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

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

要擷取更多Jerry的原創文章,請關注公衆号"汪子熙":

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