控制台里 “自定义(打开指定页面)” 的功能,如何用服务器端 SDK 实现?

dawn2015fox
2019-06-24 04:29 772 0

想问一下,我可以在极光推送的控制台里设置一个 ”打开指定页面“ 的功能。
但此功能如何用服务器端 SDK 实现呢?

经过 debug,我发现此处设置的 activity 信息并不存在于 extra 信息中.

我设置的打开指定页面为:

intent:#Intent;component=xxx.android.demo/xxx.android.demo.H5Activity;end

debug 了两种方式(JPushMessageReceiver,BroadcastReceiver) 拿到的 bundle 和 notification 信息分别为:

NotificationMessage{notificationId=527565691, msgId='67554008264942345', appkey='cbb9b6d17befa06229dfbe8a', notificationContent='world1', notificationAlertType=7, notificationTitle='hello1', notificationSmallIcon='', notificationLargeIcon='', notificationExtras='{}', notificationStyle=0, notificationBuilderId=0, notificationBigText='', notificationBigPicPath='', notificationInbox='', notificationPriority=0, notificationCategory='', developerArg0='', platform=0, notificationType=0}

Bundle[{cn.jpush.android.ALERT=world1, cn.jpush.android.EXTRA={}, cn.jpush.android.NOTIFICATION_ID=527565691, cn.jpush.android.ALERT_TYPE=7, cn.jpush.android.NOTIFICATION_CONTENT_TITLE=hello1, cn.jpush.android.MSG_ID=67554008264942345}]

均没有我设置的 “指定页面” 的信息.
那么不在 extra 中在哪里呢?
怎么在服务器端 SDK 里设置此信息呢?

PS:我可以在服务器端 SDK 设置 extra 信息并在 app 里自己写代码实现同样的功能,但会造成一定的开发成本. 我们会对接非常多的 app,能使用默认集成了极光 SDK 就支持的方式,是最好的.

null

2个回答

热门排序