SDK Version: 42
As per the docs:
I’ve added the following:
and updated app.json:
I am ejected in the Bare Workflow, and I re-built the app using
However, audio recording is cancelled whenever I navigate out of the application.
Am I missing something here?
Hey @wrsulliv, running
expo start starts metro and generates/serves your JS bundle. You’ll need to actually build a new binary via
eas build. See Creating your first build - Expo Documentation
Whoops I meant I ran
expo run:ios which is documented to build a bare app here: Adding custom native code - Expo Documentation
I was able to resolve the issue by opening the app in XCode and manually adding the “Background” Capability.
Without that, the app would cancel the recording session upon navigating away from the app.
I want to avoid directly editing the build files, because as I understand it, the Expo configuration plugin system may edit them.
My guess is, there’s a mismatch between what XCode is doing and what Expo CLI is doing when it interprets app.json.
I’m not sure, but perhaps something like that =)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.