2013-05-29 3 views
4

타일 업데이트를 내 app 사용자에게 보냅니다. 타일 ​​업데이트 후 새 타일을 클릭하면 자동으로 새 업데이트 페이지로 사용자를 안내하고 싶습니다. 내가 이것을 성취 할 수있는 방법이 있습니까?Windows Phone에서 타일 업데이트 후 타일 탐색을 변경하십시오.

화재 & 잊어 버림 메커니즘이기 때문에 더 이상 서버를 당길 수 없습니다.

<wp:Param>/Views/MyPage.xaml</wp:Param> 

하지만 그건 내 FlipTile 업데이트 작동하지 않는 것 : 내 통지에 다음과 같은 메시지를 사용할 수있는 토스트 알림을

.

+1

재미있는 질문입니다. 하지만 알림을 사용할 때 배달 보장이 없습니다. 따라서 타일 문제를 해결할 수 있다고해도 앱이 "화재 및 잊어 버리기 메커니즘"에 의존하는 것이 실제로 안전합니까? –

+0

그건 제가 생각해야 할 위험입니다. 이 앱은 소비자를위한 앱이 아니라 사적인 앱을 제공합니다. 차라리 실패한 푸시 알림의 1 % 변경에 대해 걱정하는 것보다이 문제를 해결할 것입니다. –

답변

0

이게 당신이 찾고있는 것이 확실하지 않지만, 일단 앱이로드되면 타일을 바꿀 수 있습니까? 다소 비슷 함 :

/// <summary> 
/// Creates or replaces a tile with a Title and a parameter 
/// </summary> 
public void replaceTile() 
{ 
//ShellTile TileToFind = ShellTile.ActiveTiles.First(); 

string tileTitle = "Title of the Tile"; 


//You might want to use your Parameter from the toast here as the PageName 
ShellTile TileToFind = FindTile("/PageName.xaml?parameter"); 

StandardTileData NewTileData = new StandardTileData 
{ 
    Title = tileTitle, 
    BackgroundImage = new Uri("/Resources/tile_icon.png", UriKind.Relative), 
    Count = 0, 
    BackTitle = "", 
    //BackBackgroundImage = new Uri("/Resources/appicon_large.png", UriKind.Relative), 
    BackBackgroundImage = new Uri("", UriKind.Relative), 
    BackContent = "" 
}; 

// Application should always be found, since it is always the first tile (even if not on homescreen) 
if (TileToFind == null) 
{ 


    // Update the Application Tile with the NewTileData 
    //TileToFind.Update(NewTileData); 


    //Or replace an existing (second) tile with the new, updated Tile 
    //ShellTile alreadyExistingTile = FindTile("/PageName.xaml?parameter"); 

    //if (alreadyExistingTile != null) 
    //{ 
    // alreadyExistingTile.Delete(); 
    //} 

    ShellTile.Create(new Uri("/PageName.xaml?parameter=" + newParameter, UriKind.Relative), NewTileData); 
} 
else 
{ 
    TileToFind.Update(NewTileData); 
}} 
+0

아니요, 그게 내가 찾고있는 것이 아닙니다. 타일 ​​푸시 알림을 통해 NavigationUri를 변경해야합니다. 따라서 앱이 실행 중이 아닌 경우에도 NavigationUri를 변경할 수 있습니다. –