diff --git a/OwnTracks/OwnTracks WatchKit App/Info.plist b/OwnTracks/OwnTracks WatchKit App/Info.plist index 7b59eabf..7e83f9bd 100644 --- a/OwnTracks/OwnTracks WatchKit App/Info.plist +++ b/OwnTracks/OwnTracks WatchKit App/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 9.5.4 + 9.5.5 CFBundleSignature ???? CFBundleVersion - 9.5.4 + 9.5.5 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/OwnTracks/OwnTracks WatchKit Extension/Info.plist b/OwnTracks/OwnTracks WatchKit Extension/Info.plist index d9a3fe35..761fc752 100644 --- a/OwnTracks/OwnTracks WatchKit Extension/Info.plist +++ b/OwnTracks/OwnTracks WatchKit Extension/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 9.5.4 + 9.5.5 CFBundleSignature ???? CFBundleVersion - 9.5.4 + 9.5.5 NSExtension NSExtensionAttributes diff --git a/OwnTracks/OwnTracks/Connection.m b/OwnTracks/OwnTracks/Connection.m index c692416d..5e1d3dbe 100644 --- a/OwnTracks/OwnTracks/Connection.m +++ b/OwnTracks/OwnTracks/Connection.m @@ -357,7 +357,13 @@ - (UInt16)sendData:(NSData *)data topic:(NSString *)topic qos:(NSInteger)qos ret [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding], (long)qos, retainFlag); - + + NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; + if (json && [json isKindOfClass:[NSDictionary class]] && self.url) { + NSMutableDictionary *mutableJson = [json mutableCopy]; + [mutableJson setObject:topic forKey:@"topic"]; + data = [NSJSONSerialization dataWithJSONObject:mutableJson options:0 error:nil]; + } NSData *outgoingData = (self.key && self.key.length) ? [self encrypt:data] : data; if (self.url) { diff --git a/OwnTracks/OwnTracks/OwnTracks-Info.plist b/OwnTracks/OwnTracks/OwnTracks-Info.plist index a6aa82c8..6db801fa 100644 --- a/OwnTracks/OwnTracks/OwnTracks-Info.plist +++ b/OwnTracks/OwnTracks/OwnTracks-Info.plist @@ -92,7 +92,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 9.5.4 + 9.5.5 CFBundleSignature ???? CFBundleURLTypes @@ -111,7 +111,7 @@ CFBundleVersion - 9.5.4 + 9.5.5 Fabric APIKey diff --git a/OwnTracks/OwnTracks/de.lproj/Launch Screen.strings b/OwnTracks/OwnTracks/de.lproj/Launch Screen.strings index 06fc12db..e9a4a9e1 100644 --- a/OwnTracks/OwnTracks/de.lproj/Launch Screen.strings +++ b/OwnTracks/OwnTracks/de.lproj/Launch Screen.strings @@ -5,5 +5,5 @@ /* Class = "UILabel"; text = "OwnTracks"; ObjectID = "kId-c2-rCX"; */ "kId-c2-rCX.text" = "OwnTracks"; -/* Class = "UILabel"; text = "9.5.4"; ObjectID = "wg9-vU-Qvm"; */ -"wg9-vU-Qvm.text" = "9.5.4"; +/* Class = "UILabel"; text = "9.5.5"; ObjectID = "wg9-vU-Qvm"; */ +"wg9-vU-Qvm.text" = "9.5.5"; diff --git a/OwnTracks/OwnTracks/en.lproj/Launch Screen.strings b/OwnTracks/OwnTracks/en.lproj/Launch Screen.strings index 06fc12db..e9a4a9e1 100644 --- a/OwnTracks/OwnTracks/en.lproj/Launch Screen.strings +++ b/OwnTracks/OwnTracks/en.lproj/Launch Screen.strings @@ -5,5 +5,5 @@ /* Class = "UILabel"; text = "OwnTracks"; ObjectID = "kId-c2-rCX"; */ "kId-c2-rCX.text" = "OwnTracks"; -/* Class = "UILabel"; text = "9.5.4"; ObjectID = "wg9-vU-Qvm"; */ -"wg9-vU-Qvm.text" = "9.5.4"; +/* Class = "UILabel"; text = "9.5.5"; ObjectID = "wg9-vU-Qvm"; */ +"wg9-vU-Qvm.text" = "9.5.5"; diff --git a/OwnTracks/OwnTracksToday/Info.plist b/OwnTracks/OwnTracksToday/Info.plist index 18e13613..8eddc633 100644 --- a/OwnTracks/OwnTracksToday/Info.plist +++ b/OwnTracks/OwnTracksToday/Info.plist @@ -21,11 +21,11 @@ CFBundlePackageType XPC! CFBundleShortVersionString - 9.5.4 + 9.5.5 CFBundleSignature ???? CFBundleVersion - 9.5.4 + 9.5.5 NSExtension NSExtensionMainStoryboard