2013-02-06 30 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上輸入內容來解決此問題!