Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26311] Windows: leverage extended execution restricted capabilities

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-08-20T23:42:21.000+0000
Affected Version/sRelease 7.3.0
Fix Version/sRelease 7.5.0
ComponentsWindows
Labelsn/a
ReporterRiduanul Islam
AssigneeKota Iguchi
Created2018-08-16T19:08:17.000+0000
Updated2018-09-12T09:59:27.000+0000

Description

Hello, One a Windows App with Appcelerator which calls an asynchronous function on a .NET Core SDK which downloads extensive amounts of data and saves it directly on the App's AppData however, as per limitations from Windows 10, the App must be in the foreground for the whole execution. This creates a problem because if the App gets minimized or it is unfocused while on FullScreenMode, this call will fail. There exists a few restricted capabilities in UWP that may help with this and I wanted to reach out whether these are supported on Ti SDK 7.3 for Windows 10 or whether there's a way to do this within the Titanium SDK. The customer have tried adding
...
 
On the tiapp.xml file however, in the vsbuild folder's manifest these were removed. They also tried prefixing the Capability element with rescap but it failed to compile. Please let us know if you need any more information. Thanks

Comments

  1. Kota Iguchi 2018-08-20

    https://github.com/appcelerator/titanium_mobile_windows/pull/1281
  2. Kota Iguchi 2018-08-21

    It failed because the appxmanifest XML doesn't have rescap namespace. We have merged the fix in master (https://github.com/appcelerator/titanium_mobile_windows/pull/1281/files). With the fix, rescap Capabilities can be defined like below.
        <windows>
           <manifest>
             <Capabilities>
               <rescap:Capability Name="extendedBackgroundTaskTime"/>
               <rescap:Capability Name="extendedExecutionUnconstrained"/>
             </Capabilities>
           </manifest>
         </windows>
       
  3. Riduanul Islam 2018-08-21

    Thanks for the information. We have shared the information with the customer regarding this Fix.
  4. Samir Mohammed 2018-09-12

    *Closing ticket.* Verified improvement in SDK Version 7.5.0.v20180911212648. rescap capabilities can now be defined without the application throwing an error. *Test Steps (FR Passed):*

    Created a new titanium application

    Added the following in to the Tiapp.xml

        <windows>
           <manifest>
             <Capabilities>
               <rescap:Capability Name="extendedBackgroundTaskTime"/>
               <rescap:Capability Name="extendedExecutionUnconstrained"/>
             </Capabilities>
           </manifest>
         </windows>
       

    Ran the app using appc run -p windows --build-only

    Application was able to build without an errors

    *Test Environment*
       Name  = Microsoft Windows 10 Entreprise
       Version  = 10.0.15063
       Architecture = 64bit
       CPU Cores = 8
       Memory = 15.9GB
       Node.js = 8.9.1
       Appcelerator CLI = 7.0.6
       

JSON Source