Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

集成huawei_location 提示FusedLocationService is not initialized #352

Open
cxcel opened this issue Feb 2, 2024 · 2 comments
Open

集成huawei_location 提示FusedLocationService is not initialized #352

cxcel opened this issue Feb 2, 2024 · 2 comments

Comments

@cxcel
Copy link

cxcel commented Feb 2, 2024

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!

@ahmedNagar123
Copy link

ahmedNagar123 commented Feb 5, 2024

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

@ozkulbeng
Copy link
Contributor

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.

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

No branches or pull requests

3 participants