I used this below code to pin the tile, and here i used TileNotificationsPack.dll for updating tile.
Uri Squarelogo = new Uri(ms-appx:///TileImages/150x150.jpg, UriKind.RelativeOrAbsolute);
Uri Widelogo = new Uri(ms-appx:///TileImages/310x150.jpg, UriKind.RelativeOrAbsolute);
Uri smalllogo = new Uri(ms-appx::///TileImages/30x30.jpg, UriKind.RelativeOrAbsolute);
SecondaryTile secondaryTile = new SecondaryTile(ShowId, title, ProjectName, tileActivationArguments, TileOptions.ShowNameOnLogo, Widelogo);
secondaryTile.ForegroundText = ForegroundText.Light;
secondaryTile.WideLogo = Widelogo;
secondaryTile.Logo = Squarelogo;
secondaryTile.SmallLogo = smalllogo;
await secondaryTile.RequestCreateAsync();
Tile image showing in debug mode only when i put app in store tile images are not showing..
I used this below code, and last time i used 250x250 size image for both 150x150.jpg and 30x30.jpg, now i used exact size for images now the tile is working when app is in store..
Uri Squarelogo = new Uri(ms-appx:///TileImages/150x150.jpg, UriKind.RelativeOrAbsolute);
Uri smalllogo = new Uri(ms-appx::///TileImages/30x30.jpg, UriKind.RelativeOrAbsolute);
var tileActivationArguments = "MySecondaryTile Was Pinned At " + DateTime.Now.ToLocalTime().ToString();
SecondaryTile secondaryTile = new SecondaryTile(ShowId, title, tileActivationArguments, Squarelogo, TileSize.Square150x150);
secondaryTile.VisualElements.ForegroundText = ForegroundText.Light;
secondaryTile.VisualElements.Wide310x150Logo = Squarelogo;
secondaryTile.VisualElements.Square30x30Logo = smalllogo;
secondaryTile.VisualElements.ShowNameOnSquare150x150Logo = true;
secondaryTile.VisualElements.ShowNameOnWide310x150Logo = true;
await secondaryTile.RequestCreateAsync();