fix(ios-headless): wip

This commit is contained in:
Jo 2025-07-24 07:11:54 +02:00
parent 71c31eefc7
commit 6f628979c6
Signed by: devthejo
GPG key ID: 00CCA7A92B1D5351

View file

@ -57,7 +57,11 @@ const HeadlessTask = async (event) => {
if (Platform.OS === "android") { if (Platform.OS === "android") {
BackgroundGeolocation.registerHeadlessTask(HeadlessTask); BackgroundGeolocation.registerHeadlessTask(HeadlessTask);
} else if (Platform.OS === "ios") { } else if (Platform.OS === "ios") {
BackgroundGeolocation.onLocation(async (_location) => { BackgroundGeolocation.onLocation(async () => {
await executeHeartbeatSync();
});
BackgroundGeolocation.onMotionChange(async () => {
await executeHeartbeatSync(); await executeHeartbeatSync();
}); });