2014-01-08 42 views
0

人們說他們可以將同一個Toast通知從Azure通知中心推送到Windows 8應用程序和Windows Phone 8應用程序。我的問題是烤麪包的樣子爲..Toast Notification Format to Windows WIndows App和Windows Phone 8

從例子中,對於Windows 8,格式是這樣

<toast> 
    <visual> 
     <binding template="ToastText01"> 
      <text id="1">bodyText</text> 
     </binding> 
    </visual> 
</toast> 

對於Windows手機,這是

<?xml version="1.0" encoding="utf-8"?> 
<wp:Notification xmlns:wp="WPNotification"> 
    <wp:Toast> 
     <wp:Text1>[string]</wp:Text1> 
    </wp:Toast> 
</wp:Notification> 

那麼如何我們是否與兩者兼容? 謝謝。

回答

0

你不能。您需要將適當的格式內容發送到適當的設備。