OPPO推送 打开范围中,启动应用内页的地址如何填写?怎么传递参数呢?

click_action_type为1时填写activity对应的intent action;click_action_type为4时填写activity的完整类名

OPPO推送 打开范围中,启动应用内页的地址如何填写?怎么传递参数呢?

1)click_action_type为1时填写activity对应的intent action;click_action_type为4时填写activity的完整类名
2) 打开应用内页的action需要加标签
3) 传递参数放在键值对(即action_parameters)里,客户端通过intent.getExtras()获取。
4)push的intent-filter应与其他功能的intent-filter区分开,勿添加其他action与data标签。
5)click_action_type为5时scheme路径需要写在click_action_url参数上 。
示例:
客户端AndroidManifest声明打开的activity如下:

<activity android:name="com.coloros.push.demo.component.InternalActivity">
<intent-filter>
<action android:name="com.coloros.push.demo.internal" /> 
<category android:name="android.intent.category.DEFAULT" /> 
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />

<data android:scheme="https" />
<data android:scheme="http" />
<data android:scheme="command" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

API推送:
click_action_type为1时填写:com.coloros.push.demo.internal
click_action_type为4时填写:com.coloros.push.demo.component.InternalActivity
click_action_type为5时填写:command://test?key1=val1&key2=val2
平台页面:
web端推送时,选定打开应用内页,下图分别是click_action_type为1、4、5时示例:

image.png
image.png
image.png

编辑:yimen,如若转载,请注明出处:https://www.yimenapp.com/kb-yimen/11136/

部分内容来自网络投稿,如有侵权联系立删

(0)
上一篇 2022年11月18日 下午3:09
下一篇 2022年11月18日 下午3:30

相关推荐