react-native-agora icon indicating copy to clipboard operation
react-native-agora copied to clipboard

Ios Last Version enableFaceDetection nil

Open caferyukseloglu opened this issue 2 years ago • 12 comments

Hi, after upgrading the version to the 3.7.0 whenever opening face cam it crashes on ios. "react": "17.0.1", "react-native": "0.64.1", "react-native-agora": "3.7.0",

await _engine.joinChannel(token, props.channel, null, 0); await _engine.enableFaceDetection(true);

2022-05-29 18:48:49.748592+0300 chatApp[xxxx:xxxxxx] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file react_native_agora/RtcEngine.swift, line 1178

Line 1178 => @objc func enableFaceDetection(_ params: NSDictionary, _ callback: Callback) { callback.code(engine?.enableFaceDetection(params["enabled"] as! Bool)) }

caferyukseloglu avatar May 29 '22 15:05 caferyukseloglu

@objc func enableFaceDetection(_ params: NSDictionary, _ callback: Callback) { callback.code(engine?.enableFaceDetection(true)) } Patches error but when we quit calling other end stays open I don't know it is connected to this it is there. Also I found that in ios version or enable changed to enabled but in react native it still is enable therefore it can be an version match error. It not detecting faces with this fix*. Could you fix that asap. Thank you very much.

caferyukseloglu avatar May 29 '22 16:05 caferyukseloglu

@LichKing-2234 Any Idea about this issue ?

caferyukseloglu avatar Jun 06 '22 13:06 caferyukseloglu

It works for me, any other infomation can help?

LichKing-2234 avatar Jun 08 '22 18:06 LichKing-2234

is it working for compile? just throw error on runtime?

LichKing-2234 avatar Jun 08 '22 18:06 LichKing-2234

It is giving the error at compile stage

caferyukseloglu avatar Jun 08 '22 18:06 caferyukseloglu

could pls check your podfile.lock file to get the version of AgoraRtcEngine_iOS

LichKing-2234 avatar Jun 08 '22 18:06 LichKing-2234

Sure Agora and rtcEngine 3.7.0

caferyukseloglu avatar Jun 08 '22 18:06 caferyukseloglu

could pls share the screenshot of podfile.lock?

LichKing-2234 avatar Jun 09 '22 03:06 LichKing-2234

btw, which swift version you used? and is our example working?

LichKing-2234 avatar Jun 09 '22 03:06 LichKing-2234

Sorry for late answer I was of the pc. There you go; swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12) Target: x86_64-apple-macosx12.0

caferyukseloglu avatar Jun 13 '22 07:06 caferyukseloglu

I will test it on RN 0.64.1, could you pls try our example?

LichKing-2234 avatar Jun 13 '22 10:06 LichKing-2234

Sure

caferyukseloglu avatar Jun 13 '22 11:06 caferyukseloglu