Skip to content

Commit

Permalink
documentation before code :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmens committed Dec 16, 2018
1 parent 8a1044d commit 616f8d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tech/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ When using the Recorder, the URL you specify in the app's configuration *must* i
When a message is received over MQTT, the payload is sent to a topic, and this topic can be used to map the message to the user and their device. In the case that a message is received over HTTP, we don't have the context of a topic. Instead, the iOS and Android app each have their own approach to help you figure out where the message came from:

- On iOS, a new `topic` key is added to the payload if the payload is unencrypted. If the payload is encrypted, the `topic` key is only available in the decrypted payload.
- The Android app will include headers to identify the user (`x-limit-u`) and the device (`x-limit-d`) if the user has entered this information in the "Identification" section of the connection settings.
- Both the Android and iOS apps (iOS after [#560](https://github.com/owntracks/ios/issues/560) is implemented) include headers to identify the user (`X-Limit-U`) and the device (`X-Limit-D`) if the user has entered this information in the "Identification" section of the connection settings.

### PHP example

Expand Down

0 comments on commit 616f8d2

Please sign in to comment.