Security context issue(navigator.mediadevices.getusermedia)

Hi, i am facing this issue in only Ios(ionic 3) while i am trying to navigator.mediadevices.getusermedia at that time i am getting this error " undefined is not an object (evaluating ‘navigator.mediadevices.getusermedia’) "…

if anyone knows the solution of above issue please give me reply… thank u