[TIMOB-19852] Android: Media - automatically add necessary permissions to tiapp.xml
GitHub Issue | n/a |
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-11-12T08:28:22.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Paul Dowsett |
Assignee | Chee Kiat Ng |
Created | 2015-11-03T10:44:58.000+0000 |
Updated | 2015-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
JSON Source
Once resolved the documentation changes requested by TIMOB-19851 can be reverted.
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 ifTi.Media.requestCameraPermissions()
is used.This is invalid, but might be edge case covered by TIMOB-19933