Clone
1
荣耀推送测试使用说明
admin edited this page 2025-12-31 16:21:27 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

配置完成总结

  1. 代码文件 在 AndroidPushType 中添加了 ANDROID_PUSH_TYPE_HONOR = 8 创建了 HonorPush.java、HonorConfig.java 及相关内部类 在 AndroidPushServiceImpl 中添加了荣耀推送处理逻辑
  2. 配置文件 /home/renjianbo/push/push_server/config/honor.properties: honor.appId=104475849 # APP ID,用于发送消息honor.clientId=d9fbf0f049834fb992df547819f8b160 # Client ID,用于获取 tokenhonor.clientSecret=37MeGLszVlQrNNcQ2JMZxhXTHq1E0FQy # Client Secret,用于获取 tokenhonor.badgeClass=com.xunpaisoft.social.im.main.MainActivity
  3. 测试脚本 已创建 /home/renjianbo/push/push_server/test_honor_push.sh 使用方法 测试推送时,请提供荣耀手机的 device token(push token),然后运行: cd /home/renjianbo/push/push_server./test_honor_push.sh <device_token> 请提供荣耀手机的 device token,以便进行测试推送。