[AC-6464] Ti.Media.hasCameraPermissions() is not a function on 8.3.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | bug, critical |
Reporter | Fran Rodas |
Assignee | Nazmus Salahin |
Created | 2019-12-31T14:24:52.000+0000 |
Updated | 2020-11-26T20:48:49.000+0000 |
Description
When I´m trying to get the camera permissions on iOS app runing 8.3.0.GA Ti.Media.cameraPermissions() shows me this error:
Ti.Media.hasCameraPermissions is not a function. (In 'Ti.Media.hasCameraPermissions()', 'Ti.Media.hasCameraPermissions' is undefined
Hello [~frodfigu], Thanks for reaching to us. Seems it's maybe your coding issue. Can you please share a sample test code to reproduce the issue on our end? Thanks
I had this happen after adding the hasCameraPermissions check without rebuilding the app (ie using liveview). Build a basic example app with liveview enabled, then add the Ti.Media.hasCameraPermissions() check and it will throw the error above.