[AC-5589] Unable to customize Ti.Media.requestCameraPermissions modal message text
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2018-02-10T11:26:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | api |
Reporter | Szymon Machajewski |
Assignee | Shak Hossain |
Created | 2018-02-10T02:23:13.000+0000 |
Updated | 2018-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
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):
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!