0

I'm trying to create a background task that uses the accelerometer to play with the music in the background (pause, play, etc). In the Package.appxmanifest I have a backgroundtask, that reads the accelerometer and in the Package.appxmanifest it has Device use trigger as supported task type. When I try to add Audio as supported task type I get the following error during deployment:

DEP0001 : Unexpected Error: Package could not be registered. (Exception from HRESULT: 0x80073CF6)

I played with it a little bit and it seems I cannot use any other task type with audio, but without audio I could use anything. Do you have any suggestions?

Peter
  • 1,047
  • 2
  • 18
  • 32

2 Answers2

2

It appears that you can't have Audio and Device Use in the same background task. You will have to create 2 background tasks.

H77
  • 5,859
  • 2
  • 26
  • 39
  • Yes, that's correct. Here's a short discussion about it on the msdn forum: https://social.msdn.microsoft.com/Forums/windowsapps/en-US/281e70ae-282c-4f01-aed1-eb30c77ce62c/windows-phone-81-deployment-error-when-trying-to-use-background-task-with-audio-and-device-use?forum=wpdevelop – Peter Feb 16 '15 at 10:00
0

If you tried to upgrade your WP application and got the error,have a look at the references given below. Maybe you could be missing an element in your Manifest file.

Deploying universal application results in "package could not be registered"

Deploy error: Package could not be registered

Community
  • 1
  • 1
Kulasangar
  • 9,046
  • 5
  • 51
  • 82