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

iOS Shortcuts broken with current app versions #808

Open
3 tasks done
tekook opened this issue Sep 10, 2024 · 15 comments
Open
3 tasks done

iOS Shortcuts broken with current app versions #808

tekook opened this issue Sep 10, 2024 · 15 comments

Comments

@tekook
Copy link

tekook commented Sep 10, 2024

New bug checklist

Describe the bug
iOS shurtcuts are broken with the latest update to v1 and v3.
Since the latest update which made v1 obsolete and marked it as v1, the iOS Shortcuts are no longer working.
All Items just timeout.
Save behavior with the "new" v3 app.

To Reproduce
Steps to reproduce the behavior:

  1. Install OpenHab App and connect to your server
  2. Open the shortcuts app
  3. Add a shortcut for the openhab app (e.g. set switch state)
  4. Click on "item" - Watch it load for ever
  5. If you have a previously working shortcut, run it -> results in Timeout

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

App (please complete the following information):

  • v1 Version: 2.4.62
  • v3 Version: 3.0.5

Smartphone (please complete the following information):

  • Device: iPhone14Pro, iPhone15Pro

openHAB (please complete the following information):

  • Version 4.1.2

Additional context
Will try to update my openhab instance to newer version and test again

@tekook
Copy link
Author

tekook commented Sep 10, 2024

Update: even von OpenHab 4.2.1 issue persists.

@timbms
Copy link
Contributor

timbms commented Sep 12, 2024

Can you try setting up a new shortcut?

@tekook
Copy link
Author

tekook commented Sep 12, 2024

Can you try setting up a new shortcut?

Already tried that. I can't even choose an item. It just loads and loads and loads.
Tried the TestFlight 3.0.6 - same issue.
My iPad did not update to the newer version yet, it worked fine until the update so it seems to be an app problem.

@timbms
Copy link
Contributor

timbms commented Sep 14, 2024

Works for me with the latest 3.0.6 TestFlight. What type of authentication do you use?

@digitaldan
Copy link
Contributor

It works for me as well, is this happening when you are local in your network? Is there anything special about your setup like authentication, certs, network, etc....

@tekook
Copy link
Author

tekook commented Sep 16, 2024

It works for me as well, is this happening when you are local in your network? Is there anything special about your setup like authentication, certs, network, etc....

Happens local and on mobile connection.
I using myopenhab.org as remote url. Just like "always" - worked fine before the update now everything times out.

As authentification it's the simple myopenhab.org login.

@tekook
Copy link
Author

tekook commented Sep 17, 2024

@timbms @digitaldan can i grab any log files from the app? I'm just getting timeouts and no logs on my local openHAB.
The rest API of myopenhab works fine as I made myself a little api to trigger my wanted resources via shortcuts json URL's. So sending/retrieving rest to myopenhab works fine.

I tried the older v1 version on an iPads of a friend of mine that still works fine with my server.

@digitaldan
Copy link
Contributor

Getting logs is tricky on iOS , something I was looking at baking into the app, but will require us to change all our logging to a new framework, which is not a small amount of work. You would basically need to build and run the app from Xcode to get detailed logs.

You mention myopehab, so I'm a little confused as that's not really involved here, I just want to make sure that you are testing this in you local network, using a local url with no authentication.... just trying to narrow the conditions and number of factors to help troubleshoot. What does your local connection string look like ... and can you confirm the rest of the app works using this url? Maybe remove the remote url for now to again simply the troubleshooting process, thanks!

@timbms
Copy link
Contributor

timbms commented Sep 17, 2024

Well difficult because your app is not crashing
Can you install the latest TestFlight build?

@tekook
Copy link
Author

tekook commented Sep 18, 2024

Okay I tested a bit.
The remote url cannot be removed but I removed my credentials for myopenhab.
All tests are now done locally only.
On 3.0.5: dashboard works - shortcuts do not work.
On 3.0.6: dashboard works - shortcuts work again.

But without the credentials notifications won't work (obvs)
I tried again with credentials and the latest testflight these are the result:

  • being connected locally: Dashboard works - Shortscuts work
  • being on mobile: Dashboard works - shortcuts work

So the latest testflight Version fixed my Issue.

But on 3.0.6 every notification inget gets send twice, dont know if this is Knien already.

@tekook
Copy link
Author

tekook commented Sep 18, 2024

FYI Tested again on 3.0.5 - shortcuts do not work at all even without the credentials. Even in local and mobile.

@digitaldan
Copy link
Contributor

So it sounds like 3.0.6 works, so thats good. Question, did you ever have "always send credentials" turned on ?

But on 3.0.6 every notification inget gets send twice

Its likely b/c you have duplicate registrations, either from reinstalling the app or from having v1 and v2 installed (apple assigns new registration ids) . You can manage those in the myopenhab cloud portal. If you are not sure which ones to delete, you can remove all of them, the next time you launch the app, it will re-register.

@tekook
Copy link
Author

tekook commented Sep 18, 2024

So it sounds like 3.0.6 works, so thats good. Question, did you ever have "always send credentials" turned on ?

Yeah I had that turned on from when I started using the app.

Its likely b/c you have duplicate registrations, either from reinstalling the app or from having v1 and v2 installed (apple assigns new registration ids) . You can manage those in the myopenhab cloud portal. If you are not sure which ones to delete, you can remove all of them, the next time you launch the app, it will re-register.

Bingo! That solved it.

@digitaldan
Copy link
Contributor

Yeah I had that turned on from when I started using the app.

I think this may be part of the issue, i noticed this has caused some inconsistent issues when used with some of the newer built in IOS HTTP networking we are starting to use. Good to know for future troubleshooting.

@tekook
Copy link
Author

tekook commented Sep 18, 2024

I think this may be part of the issue, i noticed this has caused some inconsistent issues when used with some of the newer built in IOS HTTP networking we are starting to use. Good to know for future troubleshooting.

Just to clarify, on 3.0.5 shortcuts did not work regardless of the always send option.

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