Forum Xamarin.Forms

[UWP] How can I use "rescap: Capability"?

Xam_001Xam_001 Member ✭✭
edited February 2019 in Xamarin.Forms

I want to do indefinitely Run in the background.

I added the following to Package.appxmanifest.
I erased "<" and ">" because code disappear.

xmlns:rescap="" IgnorableNamespaces="rescap"


rescap:Capability Name="extendedExecutionUnconstrained"/
rescap:Capability Name="extendedBackgroundTaskT_ime"/


I added "rescap" to IgnorableNamespaces.
I added "extendedExecutionUnconstrained".
I added "extendedBackgroundTaskTime".

The following error is displayed.
Validation error. error C00CE018: App manifest validation error: The app manifest must be valid as per schema: Line 52, Column 4, Reason: According to the DTD or schema, the element '{ / windows10} Text can not be used in the context of 'Capabilities'. {}CapabilityChoice, {}CustomCapabilityChoice, { .com / appx / manifest / foundation / windows10} DeviceCapability is required.

How do I add "extendedExecutionUnconstrained" and "extendedBackgroundTaskTime"?
How do I do indefinitely Run in the background?

Sign In or Register to comment.