getditto / DittoSwiftTools

Diagnostic and Debugging Tools for DittoSwift
MIT License
9 stars 2 forks source link

Allow specifying device name and metadata in the tools app #160

Open zmarkan opened 1 week ago

zmarkan commented 1 week ago

Sibling issue to https://github.com/getditto/DittoAndroidTools/issues/136

Tools app should let you pass device names to each device so that we can more easily identify them with presence viewer or other mesh observability tools. Right now, Ditto defaults to device model (usually iPad or iPhone on iOS devices).

To test - connect two devices and look at the graph in presence viewer.

kndoshn commented 1 week ago

Please note that if you change the deviceName, you need to restart the Ditto sync to update the name:

Changes to this property after startSync() was called will only take effect after the next restart of sync. https://software.ditto.live/cocoa/DittoSwift/4.8.0/api-reference/Classes/Ditto.html#/s:10DittoSwift0A0C10deviceNameSSvp