Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

[Bug] 3.0.1 Version doesn't work on android #260

Closed
DorianSaboBM opened this issue Jun 23, 2020 · 1 comment
Closed

[Bug] 3.0.1 Version doesn't work on android #260

DorianSaboBM opened this issue Jun 23, 2020 · 1 comment
Labels

Comments

@DorianSaboBM
Copy link

DorianSaboBM commented Jun 23, 2020

BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!

Describe the bug
On android after calling ScanResult scanResult = await BarcodeScanner.scan(); it will open the camera scanner and it will scan the code and close the camera, but nothing happens. No returned value.

Expected behavior
Shoould return scanResult.rawContent, same as in iOS.

Logs
D/ViewRootImpl@5adc31MainActivity: ViewPostIme pointer 0
D/ViewRootImpl@5adc31MainActivity: ViewPostIme pointer 1
W/ActivityThread(16162): handleWindowVisibility: no activity for token android.os.BinderProxy@c82f704
D/PhoneWindow(16162): forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4268 com.android.internal.policy.DecorView.updateColorViews:1494 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3246 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2474
I/MultiWindowDecorSupport(16162): updateCaptionType >> DecorView@5ba7f70[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/MultiWindowDecorSupport(16162): setCaptionType = 0, DecorView = DecorView@5ba7f70[]
D/ViewRootImpl@5ebdc1eBarcodeScannerActivity: setView = com.android.internal.policy.DecorView@5ba7f70 TM=true MM=false
D/ViewRootImpl@5adc31MainActivity: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(16162): prepareNavigationBarInfo() DecorView@4585b85[MainActivity]
D/InputMethodManager(16162): getNavigationBarColor() -855310
D/ViewRootImpl@5ebdc1eBarcodeScannerActivity: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=6 res=0x7 s={true 531498049536} ch=true
D/OpenGLRenderer(16162): createReliableSurface : 0x7b5a02a7c0(0x7bbfc0a000)
I/mali_winsys(16162): new_window_surface() [1080x2280] return: 0x3000
D/OpenGLRenderer(16162): makeCurrent EglSurface : 0x0 -> 0x7b59b7de00
D/SurfaceView(16162): onWindowVisibilityChanged(0) true me.dm7.barcodescanner.core.CameraPreview{1e67b8 V.E...... ......I. 0,0-0,0} of ViewRootImpl@5ebdc1e[BarcodeScannerActivity]
V/CameraPreview(16162): Cancelling autofocus
D/ViewRootImpl@5ebdc1eBarcodeScannerActivity: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(16162): prepareNavigationBarInfo() DecorView@5ba7f70[BarcodeScannerActivity]
D/InputMethodManager(16162): getNavigationBarColor() -855310
D/InputMethodManager(16162): prepareNavigationBarInfo() DecorView@5ba7f70[BarcodeScannerActivity]
D/InputMethodManager(16162): getNavigationBarColor() -855310
V/InputMethodManager(16162): Starting input: tba=com.flutter.litebit ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(16162): startInputInner - Id : 0
I/InputMethodManager(16162): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(16162): Input channel destroyed: 'ClientS', fd=109
D/ViewRootImpl@5ebdc1eBarcodeScannerActivity: Relayout returned: old=(0,0,1080,2280) new=(0,0,1080,2280) req=(1080,2280)0 dur=5 res=0x1 s={true 531498049536} ch=false
D/SurfaceView(16162): surfaceCreated 1 #8 me.dm7.barcodescanner.core.CameraPreview{1e67b8 V.E...... ......ID 0,0-1080,1895}
`

Environment (please complete the following information):
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.5 19F101, locale en-RS)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 3.4)
[✓] VS Code (version 1.46.1)
[✓] Connected device (1 available)

• No issues found!


Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants