Camera not working after build

Dears,

When I’m testing my app inside expo app everything works perfect! But, when i build a android binary using
expo build:android the camera and camera roll stop working. I get the atuth message, but nothing happing.

I’m using expo 30.

Anybody help me, please.

Hey @pavini,

What are you referring to when you say you get the “atuth message”? Also, can you use adb logcat to look at the device logs and see if there is anything in there that may be of importance to the issue?

Cheers,

Adam

Sorry @adamjnav,

I’m was talking about grant permission (not auth). I get message to grand camera permission.

I use the adb logcat and i found this line:

11-01 14:17:14.111 3019 3092 I ReactNativeJS: 'camera', { error: { [Error: User rejected permissions] framesToPop: 1, code: 'EUNSPECIFIED' } }

I grant the permission, and if i check app permissions on android settings, it’s all granted.

More logcat

11-01 14:17:06.081   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:06.081   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:06.088   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:06.109   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:06.236  3019  3019 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
11-01 14:17:06.236  3019  3019 W IInputConnectionWrapper: finishComposingText on inactive InputConnection
11-01 14:17:06.670   549   572 I WindowManager: Destroying surface Surface(name=InputMethod) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:429 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:232 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:180 com.android.server.wm.WindowManagerService$H.handleMessage:8079 android.os.Handler.dispatchMessage:102
11-01 14:17:08.935  3019  3050 D com.facebook.FacebookSdk: getGraphApiVersion: v3.0
11-01 14:17:09.089  3019  3050 E GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
11-01 14:17:09.089  3019  3050 D com.facebook.FacebookSdk: getGraphApiVersion: v3.0
11-01 14:17:09.271  3019  3050 E GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported post request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
11-01 14:17:11.082   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:11.083   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:11.118   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:11.118   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:14.111  3019  3092 I ReactNativeJS: 'camera', { error: { [Error: User rejected permissions] framesToPop: 1, code: 'EUNSPECIFIED' } }
11-01 14:17:14.317   549   560 I WindowManager: Destroying surface Surface(name=com.sejavirtus.placesfedrigone/host.exp.exponent.experience.ShellAppActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.removeLocked:1449 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2478 com.android.server.wm.WindowManagerService.removeWindowLocked:2436 com.android.server.wm.WindowManagerService.removeWindowLocked:2305 com.android.server.wm.WindowManagerService.removeWindow:2300 com.android.server.wm.Session.remove:193
11-01 14:17:16.084   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:16.085   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:16.128   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:16.128   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:21.086   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:21.086   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:21.130   549   606 E SupplicantWifiScannerImpl: Failed to start scan, freqs={2412}
11-01 14:17:21.130   549   604 E WifiConnectivityManager: SingleScanListener onFailure: reason: -1 description: Scan failed
11-01 14:17:22.633   276   704 E Netd    : Failed to dump IPv4 sockets for UID: No such file or directory
11-01 14:17:22.634   549   564 E NetworkManagement: Error closing sockets after enabling chain standby: android.os.ServiceSpecificException: destroySockets: No such file or directory

I do not understand. Everything works when run app inside the expo.

Thks

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.