如何使用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实现的。

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

发布了6935 篇原创文章 · 获赞 651 · 访问量 116万+

猜你喜欢

转载自blog.csdn.net/i042416/article/details/104729955