我正在使用Azure移动服务计划程序服务来定期点击另一个API并发送带有更新信息的实时平铺推送通知。但是,有时外部api不提供一部分数据,我需要清除其中一个磁贴属性。问题是,当我推出新通知时,我似乎无法从平铺中清除值。我试过发送null,空字符串,并且未定义。但我没有做任何事情会清除它。这是我的调度代码:Azure移动服务推平铺通知和清除平铺属性
push.mpns.sendFlipTile(channel.uri,
{
title: 'My Title',
backgroundImage: getTileUrl('front', 'medium', word),
backBackgroundImage: getTileUrl('back', 'medium', word),
wideBackgroundImage: getTileUrl('front', 'wide', word),
wideBackBackgroundImage: getTileUrl('back', 'wide', word),
backTitle: null, // Doesn't clear value
//backTitle: '', // Doesn't clear value
//backTitle: undefined, // Doesn't clear value
count: '0' // Sending 0 as a string will clear the counter
},
{
success: function(pushResponse) {
console.log("Sent push:", pushResponse);
},
error: function(errorResponse) {
console.error("Error push:", errorResponse);
}
});
任何人都可以帮助我吗?