我的应用程序严重依赖静默通知来将数据发送给用户。此功能在开发中效果很好,但是当我用TestFlight测试时,它不起作用。我读到这在某些iOS版本中可能是一个错误,但我没有运行其中任何一个。我正在使用parse发送推式通知,它说发送了通知,但没有执行任何代码。didReceiveRemoteNotification
有人知道为什么它不起作用吗?
Parse.Push.send({
where: pushQuery,
data: {
"content-available" : 1,
"sound" : "",
"time" : alarmTimeDate,
},
push_time: alarmTime
}, { }).then(function() {
response.success("Push was sent successfully.")
}, function(error) {
response.error("Push failed to send with error: "
+ error.message);
});
},
error: function(user, error) { // error is an instance of Parse.Error. } });
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句