当前位置: 动力学知识库 > 问答 > 编程问答 >

No sound or message ios cordova gcm on iPhone 6s iOS 9.3

问题描述:

I'm building a cordova app that uses phonegap-plugin-push. However, I don't think the issue is with that. I'm also using GCM.

When I send a push message to an iPhone 6s running iOS 9.3 when the app is closed, all I get is a short vibration. There is no message, and there is no sound. However, when the app is open, it runs the onnotification callback just fine. I have it play a sound when the app is open, and that works just fine. It also shows that it received the correct message.

When I take the same app and run on an iPhone 4s running iOS 8.x, it works perfectly, when the app is closed! Instead of a short buzz, it plays the correct sound. I wonder if this is an issue with iOS 9.3 It's hard to believe that it would be an issue with iOS. Has anybody else experienced this issue, and perhaps has some feedback on how to fix it?

Here's my configuration (sender id redacted)

var push = PushNotification.init({

android: {

senderID: "XXXXXXXXXXXXX",

alert: "true",

sound: "true",

badge: "true",

icon: true,

vibrate: "true",

//forceShow: "true"

},

ios: {

alert: "true",

badge: "true",

sound: "true",

senderID: "XXXXXXXXXXXXX",

gcmSandbox: true

},

windows: {}

});

分享给朋友:
您可能感兴趣的文章:
随机阅读: