Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17812

iOS: Feature Request to initiate the camera access prompt via Titanium Code


    • Type: New Feature
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.0.0, Release 4.1.0
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 8
      Xcode 6
      Ti SDK 3.4.0.GA

    • Story Points:
    • Sprint:
      2015 Sprint 09 SDK


      Feature Request

      When building with the 3.4.0.GA TiSDK using the iOS 8 SDK on an iPhone 6 this issue is present. The issue is not that the prompt never shows but that its only triggered by launching the camera. If I want to prompt the user before I launch the camera there is no way to prompt the user.

      We would like to request the following features for Titanium 3.5.0 SDK:
      1. Calling isCameraSupported() triggers the camera allowed prompt
      2. If the user says Don't Allow calling isCameraSupported() again should return false, but its returning true which is incorrect.

      Steps to reproduce
      1. Build attached sample with environment specification
      2. On the device go to settings > general > scroll to bottom, reset > reset Location & privacy
      3. Launch the app and,
      4. Click "is Camera supported" button
      5. Notice that it returns 1 which is true
      6. Click Launch Camera (Notice that a prompt is shown asking for access to the camera.
      7. Click Dont allow
      8. Take a picture and accept it
      9. Notice that the picture is black
      10. Accept the picture
      11. Click is Camera Supported
      12. Notice that it returns 1 which is true.

      The user did not allow camera access so the isCameraSupported should return false. Also the prompt to enable camera access should be triggered by the isCameraSupported call or some other call so that we can ask the user if they want to allow camera access before we launch the camera.

      Following my steps on step 4 isCameraSupported() returns a 1 that it is supported, and no prompt is shown.

      Then if you go to step 6 and launch image capture the prompt shows up but at that point the camera is being launched. We need to be able to trigger the prompt on the isCameraSupported call.

      Now in step 7 click the Dont Allow button and take a picture of the black area, notice its black. Now accept or close the image capture viewfinder. Click as stated in step 11 isCameraSupported(). Notice that its still a 1 which indicates that the camera is supported even though the user has not allowed access.


          Issue Links



              • Assignee:
                cng Chee Kiat Ng (Inactive)
                egomez Eduardo Gomez (Inactive)
                Vishal Duggal (Inactive)
              • Watchers:
                11 Start watching this issue


                • Created:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration