Skip to content

Commit 9898b38

Browse files
author
qinhui
committed
Add certificate error prompt for facial capture feature.
1 parent 70e5dce commit 9898b38

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

macOS/APIExample/Examples/Advanced/FaceCapture/FaceCapture.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ class FaceCaptureMain: BaseViewController {
216216
Util.configPrivatization(agoraKit: agoraKit)
217217
agoraKit.enableVideo()
218218
if (KeyCenter.FaceCaptureLicense ?? "").isEmpty {
219-
showAlert(message: "Please contact Agora customer service to obtain a face capture certificate".localized)
219+
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
220+
self.showAlert(message: "Please contact Agora customer service to obtain a face capture certificate".localized)
221+
}
220222
} else {
221223
// enable face capture
222224
agoraKit.enableExtension(withVendor: "agora_video_filters_face_capture",

0 commit comments

Comments
 (0)