Skip to content

Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:] #65

@alexei-28

Description

@alexei-28

Android Studio 4 + Flutter pluggin

MacOS 10.15 - Catalina

geolocator: ^5.3.2+2

When I start my Flutter's project on Android device it's run success. And success work with geolocations. Nice.

But when I start my Flutter project on iphone (9) I get error:

*** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework/CoreLocation-1861.3.25.50/Framework/CoreLocation/CLLocationManager.m:609
Lost connection to device.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)'
	*** First throw call stack:
	(0x2276f91b 0x21f0ae17 0x2276f7f1 0x22f53529 0x286c32ed 0x1ed13a1 0x1ed11eb 0x1ed1985 0x1ed0543 0x1ecfe29 0x2a54c5 0x25209b 0x29960d 0x260257 0x261c6b 0x2273258f 0x227321c1 0x2273000d 0x2267f229 0x2267f015 0x23c6fac9 0x26d53189 0xf9edd 0x22327873)

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