Skip to content

[Help Wanted]: backgroundGeolocation.ready() ios error #2526

@ltgreen12

Description

@ltgreen12

Required Reading

  • Confirmed

Plugin Version

4.18.17

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

iphone

Device operating-systems(s)

ios 18.3

React Native / Expo version

No response

What do you require assistance about?

the config works fine on android but returns an error (0) for ios.

[Optional] Plugin Code and/or Config

In android this works fine, In ios we when we call BackgroundGeolocation.ready() function, it returns error of '0'
const params = {
reset: true,
desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_HIGH,
distanceFilter: 5,
interval: 2000,
fastestLocationUpdateInterval: 3000,
stopOnTerminate: false,
startOnBoot: true,
elasticityMultiplier: 2,
desiredOdometerAccuracy: 50,
foregroundService: true,
forceReloadOnHeartbeat: true,
preventSuspend: true,
batchSync: false,
enableHeadless: true,
backgroundPermissionRationale: {
title: "P****************ion",
message:
'In blah blah blah this isnt the problem you up.',
},
};

[Optional] Relevant log output

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