hms-flutter-plugin icon indicating copy to clipboard operation
hms-flutter-plugin copied to clipboard

集成huawei_location 提示FusedLocationService is not initialized

Open cxcel opened this issue 1 year ago • 2 comments

Description 集成huawei_location 提示FusedLocationService is not initialized

Environment

  • Platform: flutter
  • Kit:huawei_location
  • Kit huawei_location: ^6.12.0+301
  • OS Version Android 13

Other +++ b/.gitignore +android/app/agconnect-services.json +++ b/android/app/build.gradle

  • id "com.huawei.agconnect"
  • implementation 'com.huawei.hms:location:6.12.0.300' +++ b/android/build.gradle
  •    maven {url 'https://developer.huawei.com/repo/'}
    
  •    classpath 'com.huawei.agconnect:agcp:1.9.0.300'
    
  •    maven {url 'https://developer.huawei.com/repo/'}
    

+++ b/pubspec.yaml

  • huawei_location: ^6.12.0+301

I/HMSSDK_HianalyticsExist( 6865): In isHianalyticsExist, Failed to find class HiAnalyticsConfig. I/HMSSDK_HianalyticsExist( 6865): hianalytics exist: false I/HMSSDK_HiAnalyticsUtils( 6865): Enable Log I/FormalHASDK( 6865): ======================================= I/FormalHASDK( 6865): FormalHASDK_2.2.0.314 I/FormalHASDK( 6865): ======================================= I/HMSSDK_HMSBIInitializer( 6865): Builder->biInitFlag :false I/HMSSDK_AnalyticsSwitchHolder( 6865): Builder->biSetting :true D/AGC_ConfigImpl( 6865): initConfigReader D/AGC_FlexibleDecrypt( 6865): init D/AGC_Keys( 6865): build aes key, iterationCount:1 D/AGC_Keys( 6865): build aes key end D/HMSLogger( 6865): HMS Plugin Dotting is Enabled!

cxcel avatar Feb 02 '24 10:02 cxcel

the same issue but i founded soluation fusedLocationProviderClient = FusedLocationProviderClient()..initFusedLocationService();

ahmedNagar123 avatar Feb 05 '24 10:02 ahmedNagar123

Hello @cxcel You first need to call initFusedLocationService() to initialize the Location services. Please use the latest 6.12.0+302 version and follow the documentation not to get any errors.

ozkulbeng avatar May 22 '24 06:05 ozkulbeng