LS_*_*LS_ 5 android push-notification mixpanel
我正在使用MixPanel发送推送通知,并在自定义有效负载上添加以下代码:{"sound":"default"}问题是当我收到通知时没有声音播放.有人有解决方案吗?
也许这有助于发现这里的代码看起来像这样。
Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
r.play();
Run Code Online (Sandbox Code Playgroud)