2013-02-06 25 views
2

我正在使用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); 
    } 
}); 

任何人都可以帮助我吗?

回答

3

感谢您提出这个问题。目前我们不支持清除价值的能力。 this bug正在追踪此功能的新增功能。请帮助我们优先通过在our UserVoice page上输入内容来解决此问题!