[英]Disable sound in push notification phonegap - android
Trying to disable sound of Push Notifications in my phonegap(2.2.0) app using 尝试使用以下命令在我的phonegap(2.2.0)应用程序中禁用推送通知的声音
setSoundEnabled(Boolean enabled, callback)
Note: Android Only, iOS sound settings come in the push , 注意:仅Android,iOS声音设置在推送中,
Push Notifications are coming with sound, unable disable sound. 推送通知带有声音,无法禁用声音。
Found a way by setting PushPreferences 通过设置PushPreferences找到了一种方法
PushPreferences prefs = PushManager.shared().getPreferences();
prefs.setSoundEnabled (false);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.