flutter-geolocator
flutter-geolocator copied to clipboard
[Bug]: Incompatibility with safe_device package. App doesnt start on Android
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- [X] Android
- [ ] iOS
- [ ] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows
Steps to reproduce
- Add safe_device: ^1.1.8 and geolocator: ^13.0.1 in your pubspect.yaml
- Run the App on Android devices
Expected results
App should load correctly.
Actual results
App gets stuck when starts loading the UI
Code sample
console is showing the message "The application may be doing too much work on its main thread."
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
13.0.1
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64, locale es-ES)
• Flutter version 3.24.3 on channel stable at /Users/vn575xg/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (2 weeks ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/vn575xg/Library/Android/sdk
• Platform android-34-ext11, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15E204a
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.93.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.96.0
[✓] Connected device (6 available)
• SM A525M (mobile) • R58RB4RWNAA • android-arm64 •
Android 14 (API 34)
• Melissa’s iPhone (mobile) • 00008130-001C61402E62001C • ios • iOS
17.6.1 21G93
• iPhone 15 (mobile) • 44299459-1A3E-4D7B-81C6-1F71A89C2B34 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 •
macOS 14.6.1 23G93 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin •
macOS 14.6.1 23G93 darwin-arm64
• Chrome (web) • chrome • web-javascript •
Google Chrome 126.0.6478.57
[✓] Network resources
• All expected network resources are available.
• No issues found!