I'm not grasping the idea behind Windows Phone 7 live tile push notifications.
How do you have 2 projects (one in Visual Studio - C#, the other in Visual Studio - Web Developer) and they work together?
I am trying to create an application that stays active even when the user puts it in deactive state as it needs to stay constantly connected to there e-mail account.
how would I put all of this push notification code into one project? Or do I not need to?
Any help is greatly appreciated, thanks.
Edit:
What I wish to do after diving a little further into this is locally push notifications to the tiles, I don't need to go to a server, when the application updates itsself I want to be able to push a notification to the live tile if they got a new e-mail.
Is there anyway I can do this?
In Mango, you can change Live Tile information using the ShellTile class:
ShellTile tile = ShellTile.ActiveTiles.FirstOrDefault();
// The first tile is the application tile.
// I'm not sure if it will be there if you application is not pinned
if (tile != null)
{
tile.Update(new StandardShellTileData
{
Title = "New Tile Title!",
Count = 50
});
}
Oddly, it doesn't appear that you can access the current shell tile properties (at least not from what I can see).
MSDN has a full list of StandardShellTileData properties that can be set.
Take a look at the link, it's from Mix and shows exactly how to use the new Live Tile API in Mango.
What you want to do, updating the tile locally is not possible in the current OS but will be possible in Mango.
Live Tile Mix 11 Demo
Having two projects in the same solution is an issue for how you manage your project.
For Windows Phone 7 push live tiles, it's not required, as the push notification comes from Microsoft's Push Notification Service. So your web project should make a request to MSFT Push Service, which will in turn push the livetile to your phone.
Your app should just register for a Tile Notification Channel.
This should be changing for Mango, however.
Related
I didn't find a suitable documentation from Microsoft to update periodically a tile from the application and not a server. The documentation said that you can update an application tile periodically, but you need to give a URI as the first parameter.
I want to display on the tile information about some items in the application, like the Photos application (but I think Microsoft uses a server for that).
Did someone come with a solution for that?
Thanks.
Im trying to develop an app for Windows 10 which I hope to submit to the store. I want to get access to the Taskbar APIs so I can set the progress level (green bar behind the process text).
In Windows 7 I used the some of these APIs:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd391692(v=vs.85).aspx
They were wrapped by this handy library which I used in my C# app:
http://blogs.microsoft.co.il/sasha/2009/02/12/windows-7-taskbar-apis/
I cant find the equvilant for UWA Desktop Extension, Any ideas?
Mike
Basically the images are comes from the app asserts, see this: Guidelines for app assets Target-based assets session for more information. The asserts are the read-only stuff and we cannot programmatically change from the code, which means we cannot create the animation on taskbar.
The APIs like ITaskbarList3 are not available in Windows Universal App.
Basically base on my understanding, Microsoft wants to use push notification/live tile also badge to deliver the current state like current progress.
We have a Windows Phone 8 game which includes text notifications on the lock screen. When we test the app on our devices the notifications work fine, and the app can be selected in the lock screen settings to display notification text. However, once the app is uploaded to the Windows Phone store and downloaded, the app is not listed in the settings for the lock screen, so can't be selected to show lok screen notifications. Has anyone else had this problem or might know why it's happening? I was thinking it was possibly something to do with the downloaded version being installed in the 'games' folder on the device, whereas the working test version is just listed in the main list of apps.
It turns out that this is a limitation with Windows Phone 8. Games cannot use lock screen notifications. From the Windows Phone developer forums:
I was hoping to find out WHY this limitation exists and if there was any way around this for you. Unfortunately it appears to be just a limitation that games cannot have lock screen notifications. You would either need to NOT post your game into the Games hub and make it an App, or not have a lock screen notification.
There was no indication that this would be changed in the near future, but I have made them aware of this issue and hopefully they will look into modifying this in a future update.
That's the answer from Dan Reagan, Team Manager, Windows Store Developer Solutions
I find different instructions, for making Live Tile of Windows 8.1 app update in the background using IBackgroundTask. Others include this row
await BackgroundExecutionManager.RequestAccessAsync();
others not.
Question is, is it required for the background updating of Live Tile to work? I do NOT need lock screen access in my app, just updating Live Tile.
If you want to run a lock-screen capable background task then you need to call the RequestAccessAsync(). Here are your options:
You can create a background task that updates the live tile doesn't need lock-screen access. If you want it to run periodically regardless of whether it is plugged in, you need to RequestAccessAsync(). Here is a good article on when you should use the MaintinanceTrigger and the TimerTrigger.
You can update the live tile from your app directly.
You can create a periodic tile update using TileUpdater.StartPeriodicUpdate
In Windows 8.1, you can update the app's live tile using the TileUpdate element in the manifest (look at the Tile Update section on the Manifest Editor Application page.)
You can use push notification to update the live tile.
Is it possible in visual studio for windows phone / C# that we can configure the application tile only.
That is ..
No Maain Page.xaml or anything.
The tile will keep on changing its background with every second of time.
Or on clicking it just a phone function will be Activated/Deactivated. (eg Bluetooth)
Please Help,
Thank you.
No this is not possible.
Tiles always open a specific page in your app. if you leave the page the default page will be opened.
Also changing the background or updating the tile can be done in a background agent at a maximum amount of once every 30 minutes.
More info on live tiles
Take a look at the "Connectivity shortcuts" app in the marketplace. they do link to specific settings screens but they can not switch the value by clicking it.