Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19852] Android: Media - automatically add necessary permissions to tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2015-11-12T08:28:22.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterPaul Dowsett
AssigneeChee Kiat Ng
Created2015-11-03T10:44:58.000+0000
Updated2015-11-12T08:35:14.000+0000

Description

Request

Note, Marshall asked me to raise this. Currently, media permissions must be explicitly configured in tiapp.xml in order to access the calendar. Just as is done for other APIs, add permissions automatically during the build process.

Comments

  1. Fokke Zandbergen 2015-11-03

    Once resolved the documentation changes requested by TIMOB-19851 can be reverted.
  2. Fokke Zandbergen 2015-11-10

    Looks like - and my test shows - that we *do* automatically add camera permissions: https://github.com/appcelerator/titanium_mobile/blob/1607237763f9e490e41d98b8d711ac49eeb01043/android/cli/commands/_build.js#L3419 But only when Ti.Media.showCamera() is used. We should also add the permissions if Ti.Media.requestCameraPermissions() is used.
  3. Fokke Zandbergen 2015-11-12

    This is invalid, but might be edge case covered by TIMOB-19933

JSON Source