requestRecordPermission does nothing

后端 未结 4 788
深忆病人
深忆病人 2021-01-11 10:32

Since the update of iOS 7 there has been some changes with recording applications. I have an app that used to work with iOS 5 and 6, but when I tried to run it on iOS 7 - r

4条回答
  •  花落未央
    2021-01-11 11:23

    I ran into the same problem while testing on iOS7 simulator, it looks like requestRecordPermission does not work in simulator and "granted" is always returned YES. You have to test it on a real device.

    If you have tested it once on a device and responded to the permission popup then permission popup will not come again until a reset of location & privacy is done.

    To reset Location & Privacy follow these steps

    Go to Settings -> General -> Reset -> Reset Location & Privacy and then press "Reset Warnings" when asked.
    

提交回复
热议问题