rkreutz / openhaystack-ios

OpenHaystack native iOS app
MIT License
1 stars 2 forks source link

Plist example and authorization header #1

Open isibizi opened 1 month ago

isibizi commented 1 month ago

Hey, thanks for your iOS app! I have one question, where can I find an example of the plist? I have some tags with the generated keys, but I don’t have plists for these keys.

Also, I have activated authorization for my server. How does the authorization header look?

rkreutz commented 1 month ago

Should be generated from OpenHaystack macOS app from original OpenHaystack project (link can be found on the README)

isibizi commented 1 month ago

ok thx mate! How does the authorization header look, where i can find this header?

rkreutz commented 1 month ago

That's up to you really, if you server requires it then use it, if not then don't.

isibizi commented 1 month ago

It’s not so important. I have used @dchristl’s solution before, and in this solution, I have the possibility to secure the server with a username and password in the config. I thought it was the same on your server. I don’t know if you are already working on this, but the OHS or the Anisette server has a significant bug. The geo-coordinates only sync the first time when you configure the server. After that, no new coordinates are visible on the client anymore.

rkreutz commented 1 month ago

I've been using a variation of that server with no issues, though the variation I use is mostly a proxy to Apple's server, it doesn't store any keys or geo-coordinates so that might possibly explain why I haven't had issues

isibizi commented 1 month ago

That means the iOS app and the Anisette3 server that you have in the repo are not the only two things we need to have a working solution, right? Can you describe which apps we need to track tags?

Here is the iOS App to navigate to the geo-coordination

OpenHaystack.zip

rkreutz commented 1 month ago

The iOS app and the server basically, server comprises of anisette and API server. You can tweak this app to use macless-haystack instead of my own version (just search for OpenHaystack-server)

isibizi commented 1 month ago

Hey Mate, how are you?

Yesterday, I tested your app and server in a new environment. Initially, everything seemed to work fine, but since yesterday evening, I haven't received any new coordinates from the server. I already checked the logs on the server, but I can't see any errors. I also removed the app from my phone and reinstalled it, but I'm still seeing the coordinates from yesterday evening. I checked the coordinates in the macless-haystack solution, and everything is correct there.

Could you please look into this issue?

Can you tell me what changes are needed to run the app with macless-haystack? I’m not a Swift developer myself, the changes to navigate to geo-coordinates were implemented by my brother.

Thanks,

rkreutz commented 1 month ago

The only difference I believe is the payload (request and response) I don't remember the details unfortunately. But if you are getting reports on the app side then is definitely an issue on the server side (server sending old reports), I'd suggest doing API calls using postman or some other REST API client and checking what your server is returning. Unfortunately I can't do much here since the app is not intended for macless-haystack but instead my own server implementation