expo sdk version 34
expo-face-detector version ^6.0.1
expo-camera version ^6.0.0
FaceDetector is not working on my ejected project.
It was working well on Expo client.
But as soon as I eject the project in order to use native modules, it stopped working.
It doesn’t crash after I update the “expo-face-detector” module from 6.0.0 to 6.0.1.
But now the problem is that the face detector is not working.
It doesn’t detect any faces at all.
It doesn’t trigger onFaceDetected event.
But before I eject the project, it worked well.
I could see the rectangle around my face in real-time.
I have not worked with the FaceDetector or Firebase before, so I’m not sure what’s supposed to be in google-services.json, but maybe the Expo Firebase docs and the following will help:
EDIT: Changed the filename in the app.json example.
hmmm… it looks like there was code on an earlier version of the sdk-34 branch to call [FIRApp configure] but it was wrapped in a check for host.exp.Exponent, so I think it would only work in a managed app. But there’s a later change that moves the check into a new EXFaceDetectorAppDelegate.m file and removes the host.exp.Exponent restriction.
There’s also a commit to publish expo-face-detector@6.0.1.
I’m still a little unclear on how some of the versioning works and how all the different pieces of Expo fit together, so I’m not sure what the solution is, but I suspect it involves upgrading to expo-face-detector@6.0.1 and maybe making sure you have the latest expo-cli and expo as well.
@topace336, no, as mentioned in a previous comment I have not done this. Perhaps my comment was a little ambiguous. I have not done this before and I have not done it now either. I have not yet needed to use the FaceDetector. I am just trying to point out possible solutions based on answers I have seen elsewhere I hope it helps.