Comments (9)
Hi Christian, thanks for reporting this. I suspect it's due to an issue with the background task not starting up on x86 architectures in that Windows 10 build. Do you have an x64 machine you can target to confirm whether it works there?
from windows-universal-samples.
Hi Aaron, yes it works when I change target to x64.
Thanks!
from windows-universal-samples.
Hi again Aaron, can't get my own project to work.
Not even on WP emulator. There isn't an issue with the background task not starting up on VB.NET projects?
from windows-universal-samples.
Great! Thanks for confirming x64 worked in the sample. Support for x86 on x64 is on the way.
Language shouldn't make a difference. Can you tell me more about your VB project configuration? Did you convert it to a Windows Universal project? Check also that you updated your Package.appxmanifest file to include the required task extensions.
<Extensions>
<Extension Category="windows.backgroundTasks" EntryPoint="BackgroundAudioTask.MyBackgroundAudioTask">
<BackgroundTasks>
<Task Type="audio" />
</BackgroundTasks>
</Extension>
</Extensions>
from windows-universal-samples.
Created a Windows Universal Solution from scratch on 10.0.10030.0
I then installed Visual Studio 2015 RC and changed to 10.0.10069.0
When I debug the sample, I run it, put a breakpoint in CastsBackgroundAudioTask.Run method and suspend the app through Lifecycle Events which will put me in the Run method of the background task.
If I do the same in my project nothing happens when I suspend the App. The background task is never invoked.
Here are the Projects:
CASTS_BACKGROUNDAUDIO (Windows Runtime Component)
Assembly name: CASTS_BACKGROUNDAUDIO
Default namespace: CASTS_BACKGROUNDAUDIO
Background task class: CastsBackgroundAudioTask
CASTS_UAP (APP)
Has reference to CASTS_BACKGROUNDAUDIO project
Package.appxmanifest:
<Extensions>
<Extension Category="windows.backgroundTasks" EntryPoint="CASTS_BACKGROUNDAUDIO.CastsBackgroundAudioTask">
<BackgroundTasks>
<Task Type="audio" />
</BackgroundTasks>
</Extension>
</Extensions>
Don't know what can be the problem, I hade a Silverlight App previously which I could make work.
Thanks for the help!
from windows-universal-samples.
I created a new solution with only the basics, tried to suspend the app for it to break in the Run method but nothing. The solution is here: http://1drv.ms/1F8fGIV
from windows-universal-samples.
Strange, when I suspend the sample now it will not break in the Run method.
What is triggering the Background task to Run?
from windows-universal-samples.
Got it to work!
Had to create a new solution and projects.
Don't know why it didn't work with my previous solution, I used the same code.
from windows-universal-samples.
Yay! There may have been some project template changes between 10030 and 10069 that just creating a new project resolved. Glad to hear that worked for you!
from windows-universal-samples.
Related Issues (20)
- Executable for Personalization HOT 3
- Add a sample on WebAuthenticationCoreManager::CreateWebAccountMonitor Method
- Microsoft::Resources::MRT_ERROR_SCENARIO_TYPE
- Inputting voice fails to produce results HOT 29
- Some of these samples are missing core components. HOT 6
- XAML disigner tells you to upgrade Windows? HOT 2
- Create feature to remove a portion of the video and save the copy without the cut portion
- WICColorContextUninitialized is returned by IWICColorContext->GetType
- DatagramSocket c++/winrt
- Small UI bug in SimpleCommunication c# sample
- AppointmentManager.ShowAddAppointmentAsync always returns empty string
- BluetoothLE Sample fails to connect to Silicon Labs device after it reboots in OTA mode
- Jonesfaso HOT 1
- Always OnHaptic Feedback HOT 1
- error while saving the 3mf
- Second WiFi Direct connection fails HOT 2
- WiFiDirect Watcher sometimes fails to restart HOT 1
- WiFiDirect cppwinrt misplaced '}' HOT 3
- C++/WinRT Versions of All Samples HOT 2
- Can not build and debug the sample HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-universal-samples.