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.
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml">
<BackgroundExecution>
<ExecutionType Name="LocationTracking" />
</BackgroundExecution>
</DefaultTask>
Once it was manually removed, the store accepted my app. Here is the final xml.
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml">
</DefaultTask>
</Tasks>
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:
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:
Comments
Post a Comment