나는 그러나 내가 오류 수신하고, 자체에 라이브 타일 업데이트를 밀어 전화를 사용하고 있습니다 :라이브 타일 채널 푸시 오류 "MessageBadContent"
{Microsoft.Phone.Notification.NotificationChannelErrorEventArgs}
을 " MessageBadContent "
의 errorCode = -2129589899
이 나는 타일에 대한 열린 우리당에 전송하고있는 URL이 너무 길기 때문에 이것이 느낌이있다.
이 문제가 발생한 사람이 있습니까?
업데이트를 보내는 코드 :
HttpNotificationChannel channel = HttpNotificationChannel.Find("OneTime");
if (channel != null)
channel.Close();
else
{
channel = new HttpNotificationChannel("OneTime");
channel.ChannelUriUpdated +=
(s, e) =>
{
if (imageUri.IsAbsoluteUri)
{
channel.BindToShellTile(new Collection<Uri> {new Uri("http://mydomain.com") });
}
else
channel.BindToShellTile();
SendTile(e.ChannelUri, imageUri.ToString(), 0, " ",
() =>
{
//Give it some time to let the update propagate
Thread.Sleep(
TimeSpan.FromSeconds(10));
channel.UnbindToShellTile();
channel.Close();
//Do the operation
if (onComplete != null)
onComplete();
}
);
};
channel.Open();
}
}
내 보낸 패키지의 XML은 다음과 같습니다
추측에서<?xml version="1.0" encoding="utf-8" ?>
<wp:Notification xmlns:wp="WPNotification">
<wp:Tile>
<wp:BackgroundImage>http://mydomain.com/t/k/DQAAALcAAADLhwtLmfIY_JXVhUMA4vYEemvu9dlf-rK8_SbiCGdWPyABXu1MqmZePHf5q9KHfL5J24qvWEgc6EgfparQKQCHsn938r357YSY_uci8DU3XUSg_v9HI3Kbbwmxrr6I97QpD99RfEOxwa6KhZiFTlMLLswh8HDRhlJbe-h10p40SnylDumQRhxqiRYbB3sHYPekrVyS8gJf9opaoQ-dIV1PAtKqc_WdrU37pWYHhwjKJ-QV7d0JrQ9sONEr6VitSRc/s/21556645/p/3</wp:BackgroundImage>
<wp:Count>0</wp:Count>
<wp:Title />
</wp:Tile>
</wp:Notification>
는 작은 파일 이름을 사용하여 시도해야 이걸 배제 할 건가요? –
나는 가지고 있고, 그것은 작동한다 - 이것이 내가 왜 잘못하고 있는지 궁금해하는 이유이다. 내 페이로드는 500 바이트 이상입니다 (1024 이하로 제한). 왜 실시간 업데이트 타일 URL에 짧은 제한이 있습니까? (위의 광산은 그다지 크지 않은 약 300 자입니다) – Doug