hemanthrajv / flutter_compass

MIT License
102 stars 188 forks source link

Not working for some devices (Huawei GR3 2017) #30

Closed bhanuka96 closed 3 years ago

bhanuka96 commented 4 years ago

I tried flutter_compass. this plugin working perfectly. But not working for some devices. Is there any way to create a compass another official way?

I found another production application used a flutter compass. I downloaded it and test it. This one also not working for my device. I think this app also used this plugin. What is the issue? play store link and their article

FlutterCompass.events.listen((double direction) {
  setState(() {
    _direction = direction;
  });
});

I tried another Huawei device.I got this error message on my console..

E/SensorManager(10516): sensor or listener is null

Log

2020-02-26 11:32:34.281 9552-9552/? I/zygote64: Late-enabling -Xcheck:jni
2020-02-26 11:32:34.306 9552-9552/? I/zygote64: Reinit property: dalvik.vm.checkjni= false
2020-02-26 11:32:34.331 9552-9552/? D/ActivityThread: ActivityThread,attachApplication
2020-02-26 11:32:34.406 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache mCurPackageName=com.orelgodriver.dev uptimes=101834774
2020-02-26 11:32:34.408 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid null
2020-02-26 11:32:34.408 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache volumes null
2020-02-26 11:32:34.411 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.orelgodriver.dev#11285#256
2020-02-26 11:32:34.411 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid 11285
2020-02-26 11:32:34.412 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache volumes null
2020-02-26 11:32:34.413 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.orelgodriver.dev#11285#0
2020-02-26 11:32:34.413 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache async read begin packageName=com.orelgodriver.dev userid=0
2020-02-26 11:32:34.413 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi null
2020-02-26 11:32:34.413 9552-9552/com.orelgodriver.dev D/HwFLClassLoader: get used feature list :/feature/used-list failed!
2020-02-26 11:32:34.413 9552-9552/com.orelgodriver.dev D/HwFLClassLoader: USE_FEATURE_LIST had not init! 
2020-02-26 11:32:34.414 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi null
2020-02-26 11:32:34.416 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi null
2020-02-26 11:32:34.417 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid null
2020-02-26 11:32:34.418 9552-9568/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache async read finished packageName=com.orelgodriver.dev userid=0 totalus=5233
2020-02-26 11:32:34.437 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi null
2020-02-26 11:32:34.531 9552-9577/com.orelgodriver.dev W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
2020-02-26 11:32:34.541 9552-9579/com.orelgodriver.dev W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
2020-02-26 11:32:34.552 9552-9579/com.orelgodriver.dev I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
2020-02-26 11:32:34.581 9552-9552/com.orelgodriver.dev I/FirebaseInitProvider: FirebaseApp initialization successful
2020-02-26 11:32:34.586 9552-9584/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi PackageInfo{d6e6bbf com.orelgodriver.dev}
2020-02-26 11:32:34.589 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid 11285
2020-02-26 11:32:34.589 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache volumes [Landroid.os.storage.StorageVolume;@fd52dd5
2020-02-26 11:32:34.594 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid 11285
2020-02-26 11:32:34.594 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache volumes [Landroid.os.storage.StorageVolume;@fd52dd5
2020-02-26 11:32:34.606 9552-9586/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi PackageInfo{d6e6bbf com.orelgodriver.dev}
2020-02-26 11:32:34.606 9552-9586/com.orelgodriver.dev I/ResourceExtractor: Found extracted resources res_timestamp-1-1582696495092
2020-02-26 11:32:34.614 9552-9568/com.orelgodriver.dev E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
2020-02-26 11:32:34.616 9552-9552/com.orelgodriver.dev E/Minikin: Could not get cmap table size!
2020-02-26 11:32:34.617 9552-9576/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi PackageInfo{d6e6bbf com.orelgodriver.dev}
2020-02-26 11:32:34.627 9552-9576/com.orelgodriver.dev I/FA: App measurement is starting up, version: 18202
2020-02-26 11:32:34.627 9552-9576/com.orelgodriver.dev I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
2020-02-26 11:32:34.628 9552-9576/com.orelgodriver.dev I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.orelgodriver.dev
2020-02-26 11:32:34.633 9552-9552/com.orelgodriver.dev I/HwCust: Constructor found for class android.app.HwCustActivityImpl
2020-02-26 11:32:34.634 9552-9552/com.orelgodriver.dev D/HwCust: Create obj success use class android.app.HwCustActivityImpl
2020-02-26 11:32:34.635 9552-9552/com.orelgodriver.dev V/HwPolicyFactory: : success to get AllImpl object and return....
2020-02-26 11:32:34.638 9552-9552/com.orelgodriver.dev I/HwCust: Constructor found for class android.app.HwCustHwWallpaperManagerImpl
2020-02-26 11:32:34.639 9552-9552/com.orelgodriver.dev D/HwCust: Create obj success use class android.app.HwCustHwWallpaperManagerImpl
2020-02-26 11:32:34.646 9552-9552/com.orelgodriver.dev V/HwWidgetFactory: : successes to get AllImpl object and return....
2020-02-26 11:32:34.650 9552-9552/com.orelgodriver.dev V/ActivityThread: ActivityThread,callActivityOnCreate
2020-02-26 11:32:34.651 9552-9576/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache pi PackageInfo{f103453 com.orelgodriver.dev}
2020-02-26 11:32:34.872 9552-9552/com.orelgodriver.dev I/HwSecImmHelper: mSecurityInputMethodService is null
2020-02-26 11:32:34.880 9552-9552/com.orelgodriver.dev W/Settings: mValues not put! needsGenerationTracker: true currentGeneration: -1 name: time_12_24 value: 12
2020-02-26 11:32:34.885 9552-9552/com.orelgodriver.dev D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0f00c9, context : com.orelgodriver.dev.MainActivity@7df7c42, Nhwext : 0, get Blur : disable with , null
2020-02-26 11:32:34.886 9552-9552/com.orelgodriver.dev D/HwRTBlurUtils: check blur style for HwPhoneWindow, themeResId : 0x7f0f00c9, context : com.orelgodriver.dev.MainActivity@7df7c42, Nhwext : 0, get Blur : disable with , null
2020-02-26 11:32:34.913 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache oUid 11285
2020-02-26 11:32:34.914 9552-9552/com.orelgodriver.dev I/HwApiCacheMangerEx: apicache volumes [Landroid.os.storage.StorageVolume;@fd52dd5
2020-02-26 11:32:34.940 9552-9552/com.orelgodriver.dev D/ActivityThread: add activity client record, r= ActivityRecord{3e5ed66 token=android.os.BinderProxy@d1813b7 {com.orelgodriver.dev/com.orelgodriver.dev.MainActivity}} token= android.os.BinderProxy@d1813b7
2020-02-26 11:32:34.967 9552-9552/com.orelgodriver.dev D/OpenGLRenderer:   HWUI Binary is  enabled
2020-02-26 11:32:34.971 9552-9620/com.orelgodriver.dev D/OpenGLRenderer: HWUI GL Pipeline
2020-02-26 11:32:34.973 9552-9576/com.orelgodriver.dev I/FA: Tag Manager is not found and thus will not be used
2020-02-26 11:32:34.994 9552-9552/com.orelgodriver.dev I/PressGestureDetector: onAttached begin
2020-02-26 11:32:34.995 9552-9552/com.orelgodriver.dev I/PressGestureDetector: onAttached end
2020-02-26 11:32:34.995 9552-9621/com.orelgodriver.dev I/PressGestureDetector: HiTouch restricted: AboardArea.
2020-02-26 11:32:35.038 9552-9620/com.orelgodriver.dev I/OpenGLRenderer: Initialized EGL, version 1.4
2020-02-26 11:32:35.038 9552-9620/com.orelgodriver.dev D/OpenGLRenderer: Swap behavior 2
2020-02-26 11:32:35.055 9552-9620/com.orelgodriver.dev D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
2020-02-26 11:32:35.065 9552-9589/com.orelgodriver.dev D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
2020-02-26 11:32:35.097 9552-9558/com.orelgodriver.dev I/zygote64: Do partial code cache collection, code=29KB, data=22KB
2020-02-26 11:32:35.098 9552-9558/com.orelgodriver.dev I/zygote64: After code cache collection, code=28KB, data=21KB
2020-02-26 11:32:35.098 9552-9558/com.orelgodriver.dev I/zygote64: Increasing code cache capacity to 128KB
2020-02-26 11:32:35.177 9552-9614/com.orelgodriver.dev I/flutter: Observatory listening on http://127.0.0.1:36629/tQ2gGGXykrE=/
2020-02-26 11:32:35.350 9552-9552/com.orelgodriver.dev W/InputMethodManager: startInputReason = 1
2020-02-26 11:32:35.384 9552-9552/com.orelgodriver.dev W/InputMethodManager: startInputReason = 5
2020-02-26 11:32:36.448 9552-9552/com.orelgodriver.dev V/InputMethodManager: Reporting focus gain, without startInput
2020-02-26 11:32:39.058 9552-9558/com.orelgodriver.dev I/zygote64: Do partial code cache collection, code=60KB, data=44KB
2020-02-26 11:32:39.058 9552-9558/com.orelgodriver.dev I/zygote64: After code cache collection, code=60KB, data=44KB
2020-02-26 11:32:39.058 9552-9558/com.orelgodriver.dev I/zygote64: Increasing code cache capacity to 256KB
2020-02-26 11:32:40.607 9552-9833/com.orelgodriver.dev D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-02-26 11:32:40.619 9552-9832/com.orelgodriver.dev I/HwCust: Constructor found for class android.net.HwCustConnectivityManagerImpl
2020-02-26 11:32:40.619 9552-9832/com.orelgodriver.dev D/HwCust: Create obj success use class android.net.HwCustConnectivityManagerImpl
2020-02-26 11:32:40.621 9552-9835/com.orelgodriver.dev W/DynamiteModule: Local module descriptor class for providerinstaller not found.
2020-02-26 11:32:40.635 9552-9835/com.orelgodriver.dev I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
2020-02-26 11:32:40.637 9552-9835/com.orelgodriver.dev W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
2020-02-26 11:32:40.659 9552-9835/com.orelgodriver.dev D/HwFLClassLoader: USE_FEATURE_LIST had not init! 
2020-02-26 11:32:40.715 9552-9835/com.orelgodriver.dev V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
2020-02-26 11:32:40.794 9552-9835/com.orelgodriver.dev I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
2020-02-26 11:32:53.747 9552-9552/com.orelgodriver.dev I/hwaps: JNI_OnLoad
2020-02-26 11:32:55.461 9552-9558/com.orelgodriver.dev I/zygote64: Do full code cache collection, code=124KB, data=88KB
2020-02-26 11:32:55.462 9552-9558/com.orelgodriver.dev I/zygote64: After code cache collection, code=106KB, data=63KB
2020-02-26 11:33:09.126 9552-9558/com.orelgodriver.dev I/zygote64: Do partial code cache collection, code=112KB, data=77KB
2020-02-26 11:33:09.127 9552-9558/com.orelgodriver.dev I/zygote64: After code cache collection, code=112KB, data=77KB
2020-02-26 11:33:09.127 9552-9558/com.orelgodriver.dev I/zygote64: Increasing code cache capacity to 512KB
hemanthrajv commented 4 years ago

Can you please get the logs if any.

On Wed, 26 Feb, 2020, 10:57 AM Bhanuka Isuru, notifications@github.com wrote:

I tried flutter_compass. this plugin working perfectly. But not working for some devices. Is there any way to create a compass another official way?

I found another production application used a flutter compass. I downloaded it and test it. This one also not working for my device. I think this app also used this plugin. What is the issue? play store link https://play.google.com/store/apps/details?id=com.mth2610.map_compass and their article https://itsallwidgets.com/compass-map-gps-flutter

FlutterCompass.events.listen((double direction) { setState(() { _direction = direction; }); });

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hemanthrajv/flutter_compass/issues/30?email_source=notifications&email_token=AE32SHLBM7UFIXVYUAWGPKLREX4TRA5CNFSM4K35IX5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQJ7DAQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE32SHKZCLBDXFARKAG6P23REX4TRANCNFSM4K35IX5A .

bhanuka96 commented 4 years ago

Can you please get the logs if any. On Wed, 26 Feb, 2020, 10:57 AM Bhanuka Isuru, @.***> wrote: I tried flutter_compass. this plugin working perfectly. But not working for some devices. Is there any way to create a compass another official way? I found another production application used a flutter compass. I downloaded it and test it. This one also not working for my device. I think this app also used this plugin. What is the issue? play store link https://play.google.com/store/apps/details?id=com.mth2610.map_compass and their article https://itsallwidgets.com/compass-map-gps-flutter FlutterCompass.events.listen((double direction) { setState(() { _direction = direction; }); }); — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#30?email_source=notifications&email_token=AE32SHLBM7UFIXVYUAWGPKLREX4TRA5CNFSM4K35IX5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQJ7DAQ>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE32SHKZCLBDXFARKAG6P23REX4TRANCNFSM4K35IX5A .

@hemanthrajv I added

bhanuka96 commented 4 years ago

Can you please get the logs if any. On Wed, 26 Feb, 2020, 10:57 AM Bhanuka Isuru, @.***> wrote: I tried flutter_compass. this plugin working perfectly. But not working for some devices. Is there any way to create a compass another official way? I found another production application used a flutter compass. I downloaded it and test it. This one also not working for my device. I think this app also used this plugin. What is the issue? play store link https://play.google.com/store/apps/details?id=com.mth2610.map_compass and their article https://itsallwidgets.com/compass-map-gps-flutter FlutterCompass.events.listen((double direction) { setState(() { _direction = direction; }); }); — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#30?email_source=notifications&email_token=AE32SHLBM7UFIXVYUAWGPKLREX4TRA5CNFSM4K35IX5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQJ7DAQ>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE32SHKZCLBDXFARKAG6P23REX4TRANCNFSM4K35IX5A .

I run app on another Huawei device. I got an error message,I updated on my question.please chekc.. Is it possible to fix it before this week? After this, we decided app publish on production.

davidzachariah commented 4 years ago

Is this resolved?

hemanthrajv commented 3 years ago

Fixed by #62