安卓最新的SDK,使用sound字段仍然没有声音
使用了最新版本5.2.0的SDK,在极光控制台发送通知类型的推送,设置携带sound参数,并设置"提示音+震动+指示灯",APP能收到推送但没有声音也没有震动,这是bug吗?试了几台手机都一样。
手机型号:红米K30S Android 12
相关截图:
消息体:
{
"a_total_user": 1,
"api_type": 32,
"appkey": "a346f1b462f62d311510b8b5",
"audience": "all",
"business_operation_code": "",
"client_ip": "10.74.3.215",
"data_msgtype": 1,
"errno": 0,
"i_total_user": 0,
"inapp_message": {
"inapp_message": false
},
"inappmessage": null,
"is_vip": 0,
"itime": 1698405131,
"live_activity": null,
"message": null,
"msg_id": "18101059360003096",
"notification": {
"alert": "还是没有呀",
"android": {
"alert": "还是没有呀",
"alert_type": 7,
"badge_add_num": 1,
"builder_id": 0,
"category": "",
"extras": {},
"intent": {
"url": "intent:#Intent;action=android.intent.action.MAIN;end"
},
"large_icon": "",
"priority": 0,
"sound": "msg_sound",
"style": 0,
"title": "有没有声音呀"
}
},
"options": {
"apns_production": false,
"classification": 0,
"sendno": "1698405130",
"third_party_channel": {},
"time_to_live": 86400
},
"platform": [
"android"
],
"push_type": 1,
"q_total_user": 0,
"receive_time": 1698405131,
"request_time": 1698405131255,
"send_source": 1,
"total_user": 1,
"w_total_user": 0
}
```
PS: APP端的项目是基于官方下载最新的demo来修改的,从一开始就完全没有声音,后面尝试过使用NotificationChanel的方式也不行,继而尝试不用chanel_id参数改用sound参数也同样是没有声音没有震动但通知栏有收到推送
补充:已确认手机没有开启静音也没有关闭震动功能,音量也在正常范围内,在其他app(例如飞书)别人发信息过来收到是有声音和震动的