NextLevel icon indicating copy to clipboard operation
NextLevel copied to clipboard

NextLevel failing to start in iOS 14.2

Open martino-dot opened this issue 4 years ago • 4 comments

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 avatar Nov 20 '20 04:11 martino-dot

@martino-dot thanks for reporting. do you have any details, such as an error or line that it fails at?

piemonte avatar Nov 20 '20 16:11 piemonte

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:).

martino-dot avatar Nov 20 '20 17:11 martino-dot

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.

martino-dot avatar Nov 20 '20 19:11 martino-dot

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

grenos avatar Mar 10 '21 22:03 grenos