Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23832] Windows: Proximity sensor not included in auto-generated capabilties

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-08-29T06:32:26.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsqe-6.0.0
ReporterEwan Harris
AssigneeGary Mathews
Created2016-08-26T17:30:48.000+0000
Updated2016-12-08T00:27:05.000+0000

Description

Description

When using the proximity sensor APIs introduced in TIMOB-19926, I would expect the corresponding capability (Proximity) to be added to the appxmanifest but it is not. It appears that it is not in the list

Steps to reproduce

Add Ti.App.setProximityDetection(true); to your app.js and make sure you have no capabilities specified in your tiapp.xml

Build using appc run -p windows -T wp-emulator

Check \build\windows\win10.x86\package.appxmanifest

Actual result

Proximity capability is not set

Expected result

Proximity capability should be set

Comments

  1. Gary Mathews 2016-08-26

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/840
  2. Samir Mohammed 2016-12-07

    Verified fixed, proximity capability is set in the \package.appxmanifest
       <Capabilities>
           <Capability Name="internetClient" />
           <DeviceCapability Name="proximity" />
         </Capabilities>
       
    *Environment*
       Operating System
         Name                        = Microsoft Windows 10 Pro
         Version                     = 10.0.14393
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 17034395648
       
       Node.js
         Node.js Version             = 4.4.4
         npm Version                 = 2.11.3
       
       Titanium CLI
         CLI Version                 = 5.0.10
       
       Titanium SDK
         SDK Version                 = 6.1.0.v20161207121046
       
  3. Samir Mohammed 2016-12-08

    Further environment information.
       Windows Emulator: Mobile Emulator 10.0.14393.0 1080p 6 inch 2GB 
       

JSON Source