NextLevel
NextLevel copied to clipboard
NextLevel failing to start in iOS 14.2
I am using NextLevel and in the iOS 14 betas (and iOS 13), NextLevel succesfully worked and started. Now in iOS 14.2 when I call try NextLevel.shared.start()
, it simply fails. I believe that this is an error with iOS 14.2, but I may be wrong. I am using an iPhone 6s to test this.
@martino-dot thanks for reporting. do you have any details, such as an error or line that it fails at?
Yes, this is what get's called and the error gets catched:
do {
try NextLevel.shared.start()
} catch {
print("NextLevel failed to start, Error: \(error)")
}
The error is "Authorization has not been requested". I do have privacy - camera usage & privacy - microphone usage in my info.plist so this is might have something to do with requestAccess(for:completionHandler:).
I'm pretty sure that it does have something to do with requesting access for camera and audio. I tried requesting access before starting NextLevel, and the camera and microphone worked fine, but without me manually requesting it, the authorization failed.
I know I might be a little late for this but I initially had the same problem by manually requesting permissions but after I used the request from the project it worked without problems