Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plist example and authorization header #1

Open
isibizi opened this issue Aug 2, 2024 · 11 comments
Open

Plist example and authorization header #1

isibizi opened this issue Aug 2, 2024 · 11 comments

Comments

@isibizi
Copy link

isibizi commented Aug 2, 2024

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?

@isibizi isibizi changed the title Plist example Plist example and authorization header Aug 2, 2024
@rkreutz
Copy link
Owner

rkreutz commented Aug 2, 2024

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

@isibizi
Copy link
Author

isibizi commented Aug 3, 2024

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

@rkreutz
Copy link
Owner

rkreutz commented Aug 3, 2024

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

@isibizi
Copy link
Author

isibizi commented Aug 4, 2024

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
Copy link
Owner

rkreutz commented Aug 4, 2024

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
Copy link
Author

isibizi commented Aug 5, 2024

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
Copy link
Owner

rkreutz commented Aug 5, 2024

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
Copy link
Author

isibizi commented Aug 7, 2024

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
Copy link
Owner

rkreutz commented Aug 7, 2024

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

@omarkhali
Copy link

@rkreutz @isibizi Hello, I would like to ask a request. I do not know how to build applications. Is it possible to build OpenHaystack.ipa? I use Macless-Haystack server. Thank you in advance.

@rkreutz
Copy link
Owner

rkreutz commented Nov 22, 2024

It's possible but you need Xcode, unfortunately I haven't made this project to be easily deployable, you have to deploy it yourself (which mean registering with Apple and provisioning the app). I don't intend providing any kind of support on that regard. As for macless-haystack, this project assumes the server uses the same API request/response as from Apple's server, macless-haystack changes the request a little bit so you'd have to either change this app to use macless-haystack request format or change macless-haystack to just forward payload directly to Apple (without format changes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants