iOS Custom Keyboard - camera not working

后端 未结 1 1329
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 23:44

I want to create a custom keyboard, that acts as a barcode scanner. I already did the whole coding, but the output is not as expected: I am being asked for camera permissions (t

相关标签:
1条回答
  • 2021-02-06 00:20

    The reason you're getting back null is because you don't have access to it. It's actually not a bug. According to Apple guidelines certain APIs are not available to iOS 8 extensions (See bullet #3 below).

    enter image description here

    It sucks, but I always encourage people to read up on new features and see if what they want to do is possible, before dwelling into an idea (Saves a lot of time). Definitely check out the App Extension Programming Guide for more information.

    0 讨论(0)
提交回复
热议问题