From 4b33f926d3009f0a731cb80b6a482c1d1bca8f36 Mon Sep 17 00:00:00 2001 From: Andrew Rowson Date: Sun, 8 Sep 2024 17:59:42 +0100 Subject: [PATCH] fix(message): handle trigger='C' and 'v' generated by iOS Fixes #1768 --- CHANGELOG.md | 1 + .../org/owntracks/android/model/messages/MessageLocation.kt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bdd5143d1..81eeb3fb6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Fix crash when trying to decode an invalid face image on an info card - Fix MQTT disconnect when receiving an encrypted message that can't be decrypted (#1831) - Fix HTTP client certs not working properly with Nginx (#1793) +- Fix ability to handle trigger="v" and "C" locations generated from iOS (#1768) ## Version 2.5.1 diff --git a/project/app/src/main/java/org/owntracks/android/model/messages/MessageLocation.kt b/project/app/src/main/java/org/owntracks/android/model/messages/MessageLocation.kt index c0adc41705..cf4283feca 100644 --- a/project/app/src/main/java/org/owntracks/android/model/messages/MessageLocation.kt +++ b/project/app/src/main/java/org/owntracks/android/model/messages/MessageLocation.kt @@ -130,6 +130,8 @@ open class MessageLocation( PING("p"), // Issued by the periodic ping worker TIMER("t"), // Generated by iOS devices BEACON("b"), // Generated by iOS beacons + IOS_FREQUENT_LOCATIONS("v"), // Generated by iOS frequent locations + IOS_FOLLOW_CIRCULAR("C"), // Generated by iOS follow circular region DEFAULT("") } }