登錄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實現的。
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":