Monday, December 22, 2014

Windows Phone 8.1 apps can’t have background tasks for location tracking

Once i submitted my app, this is the error I got from store. Was upgrading my app from windows 8.0 to 8.1 a bad idea?

The issue told in all blog posts was that i cannot use "background location tracking" if i am creating windows 8.1 silverlight phone apps.

Even after I removed all code for background processing, the error still persisted. 

Finally, the answer was in the "WMAppManifest.xml" file. I had created the app in Windows phone 8.0, but when app was upgraded  to 8.1, Visual studio forgot to remove the following lines from the xml.


      <DefaultTask Name="_default" NavigationPage="MainPage.xaml">


          <ExecutionType Name="LocationTracking" />




Once it was manually removed, the store accepted my app. Here is the final xml.


      <DefaultTask Name="_default" NavigationPage="MainPage.xaml">




The final error was


I submit a test Windows Phone Silverlight Project 8.1 and get this error when submit

The package identity associated with this update doesn't match the uploaded appx

 ran into the same problem, but the solution is simple - the Package identity name and Windows Publisher Name in Windows Phone Store must match with the values inside the uploaded xap package.

You can find these values in the Windows Phone Dasboard in the App info section:

Windows Phone Dashboard

You then need to copy and paste these values inside your Package.appxmanifest file. Note you have to open this file using text editor. These values are not editable using the UI editor:



enter image description here

Sunday, December 21, 2014

Getting images quickly for your windows phone app development

Windows phone deployment to Windows store requires a lot of images which are very specific in terms of image size. You can generate all the images you require (from your own single image source file) from the following website.


I have used it and it is really cool!

All the images are generated and you can download all the images as a zip file for free.