0
我的設備上有IonicPush推送通知,但是如果通過mp3聲音路徑發送,則忽略它。我快速查看了https://github.com/driftyco/ionic-service-push-client/blob/master/ionic-push.js,並懷疑第185行的window.Media可能未定義。離子推動支持聲音?
$ionicPush.register({
canShowAlert: false, //Should new pushes show an alert on your screen?
canSetBadge: true, //Should new pushes be allowed to update app icon badges?
canPlaySound: false, //Should notifications be allowed to play a sound?
canRunActionsOnWake: true, // Whether to run auto actions outside the app,
onNotification: function(notification) {
return true;
}
}
有沒有其他人得到它的工作?