Closed fne00 closed 5 years ago
See the iOS setup instructions:
The default Firebase app has not yet been configured. Add [FIRApp configure];
(FirebaseApp.configure()
in Swift) to your application initialization. Read more:
Chris, Sorry about that ... followed generic Firebase instructions not your specific ones.. I've made those changes, but now get a crash on startup:
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running Xcode build...
Xcode build done. 9.4s
*** First throw call stack:
(
0 CoreFoundation 0x0000000114e266fb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x0000000113ce0ac5 objc_exception_throw + 48
2 CoreFoundation 0x0000000114e26555 +[NSException raise:format:] + 197
3 Runner 0x000000010f68d6f2 +[FIRApp configure] + 562
4 Runner 0x000000010f68b1f8 -[AppDelegate application:didFinishLaunchingWithOptions:] + 120
5 UIKitCore 0x000000011975f311 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280
6 UIKitCore 0x0000000119760cad -[UIApplication _callInitializationDe<…>
Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:61596/CZjHRRNwfEA=/ws
Regards Peter
This is not caused by the plugins: google it:
Error connecting to the service protocol: HttpException: , uri = http://127.0.0.1:61596/CZjHRRNwfEA=/ws
OK thanks - Still trying to get to the bottom of it. It is curious that if I comment out
[FIRApp configure];
It starts OK.
Fixed. So, just to record the fix, in case someone else has this issue....
Remedy:
GoogleService-Info.plist
file into Add Files to "Runner"
and then selecting my GoogleService-Info.plist.Regards Peter
Hi Chris, I have an App using flutter_background_geolocation. I tried adding flutter_background_geolocation_firebase and it seems to be working fine for Android, but not for iOS. Your Environment
flutter info
,flutter doctor
):*To Reproduce** Steps to reproduce the behavior:
Debug logs
The flutter_background_geolocation_firebase sample App worked for both Android and iOS.
When I integrated flutter_background_geolocation_firebase into my App, it works fine for Android - Seems to be posting locations to my Firebase database.
In iOS - crashes with:
Additional context Maybe I've missed something with the iOS setup? Any assistance would be appreciated thanks, Peter