Skip to content

No Auth or UID information passed to cloud function. #32

@grecky-goo

Description

@grecky-goo

Plugin version:
Platform: iOS
OS version: 17.5.1
Device manufacturer / model: Iphone 14 pro
Flutter info (flutter info, flutter doctor):
*Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.22.2, on macOS 14.4 23E214 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.90.2)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
Plugin config
BackgroundGeolocationFirebase.configure(BackgroundGeolocationFirebaseConfig(
locationsCollection: "locations",
geofencesCollection: "geofences",
updateSingleDocument: false));
bg.BackgroundGeolocation.ready(bg.Config(
debug: true,
distanceFilter: 50,
logLevel: bg.Config.LOG_LEVEL_VERBOSE,
stopTimeout: 1,
stopOnTerminate: false,
startOnBoot: true))
.then((bg.State state) {
print(
'[locationServiceIntilize] ****** Starting Service. enabled:$state.enabled ');
appState.enabled = state.enabled;
bg.BackgroundGeolocation.start();
});

To Reproduce
Steps to reproduce the behavior:
The snap record, or the context that is passed to the cloud function does not include the auth object, nor the UID information. How to configure the plugin to pass this information.

Debug logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions