Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5589] Unable to customize Ti.Media.requestCameraPermissions modal message text

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2018-02-10T11:26:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsapi
ReporterSzymon Machajewski
AssigneeShak Hossain
Created2018-02-10T02:23:13.000+0000
Updated2018-02-10T11:26:48.000+0000

Description

During iOS app certification process Apple requires that the Ti.Media.requestCameraPermissions modal message is changed to something like "We need your permission to the camera to enable QR scanner". The request function in Titanium only returns values and, to my knowledge, cannot be fed a parameter of the popup request. From Apple 5. 1.1 Legal: Privacy - Data Collection and Storage Regarding the 5.1.1 issue, we still continue to find that your app requests the user’s consent to access their camera but does not clarify the use of this feature in the permission modal alert.

Attachments

FileDateSize
Screen Shot 2018-02-09 at 9.22.39 PM.png2018-02-10T02:23:01.000+000018642

Comments

  1. Hans Knöchel 2018-02-10

    Hey there, this is not how permission handling works (both on iOS natively and Titanium). You need to specify the permissions in your Info.plist (tiapp.xml in Titanium) as documented [here](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media-method-requestCameraPermissions):
         <ios>
           <plist>
             <dict>
               <key>NSCameraUsageDescription</key>
               <string>ADD_YOUR_PERMISSION_TEXT_HERE</string>
             </dict>
           </plist>
         </ios>
       
    This is very fundamental for iOS development and is also used in many other place like geolocation, music-library, contacts and calendar. Read more about it in the related docs, thanks!

JSON Source