openhab / openhab-ios

The repository of the iOS client
Eclipse Public License 2.0
190 stars 127 forks source link

App won't open remote #138

Closed JamesM85 closed 6 years ago

JamesM85 commented 6 years ago

It appears that since the recent update, the openhab app won't open on my device when connecting to the remote URL. I'm using openhab 1.8 with an iPhone 7 running iOS 11.1.2. The app appears to just hang while attempting to connect and then close.

I have a slightly unusual setup, in that I have a reverse proxy (haproxy) sitting infront of openhab, which performs the SSL and authentication. Although this was working fine previously.

Edit - After some further testing, I've figured out that this happens when trying to connect remotely via WiFi. If I switch to 4G, it works fine. If I am connected to "Local" WiFi, it works fine. The issue just occurs when connected to a remote WiFi

digitaldan commented 6 years ago

Thanks James, i'm still looking into this, I'm hoping to get some better crash data here.

JamesM85 commented 6 years ago

Let me know if you need any more info from me

thanks James

SBG1967 commented 6 years ago

Hi, I am having a similar issue. After the update I can no longer start the app while I am away from my home wifi and connect to remote wifi. e.g. in the office. If I turn off wifi and use my phone data it connects no problem. I will test what happens when I get home to see if my home wifi behaves the same. I am running on an iPhone 6s running Ios 11.1.2 and Openhab 2 on a rasp Pi Thanks SteveG

digitaldan commented 6 years ago

Does it hang for a long time before crashing?

SBG1967 commented 6 years ago

I get the logo splash screen for 15sec then it closed and returns to main app home screen

JamesM85 commented 6 years ago

I get the splash screen for 20 seconds

My configuration is: local url: http://192.168.180.12:8080 remote url: https://openhab.sub.mydomain.co.uk

username: myuser password: mypasswordhere

Ignore SSL Certificates: OFF Disable Idle Timeout: OFF

digitaldan commented 6 years ago

I'm uploading a new build right now to apple which I think fixes this issue as well as adds usable crash reporting.

Gibber commented 6 years ago

As of 9:07 PM CST the App Store was still offering 2.0.0 Any idea how long it takes them to make new builds available?

I have the same issue on both an iPhone 6 running iOS 11.1.2 and an iPad 3 running 9.3.5 when trying to connect locally via WiFi. The iPhone 6 works fine to remote URL via mobile data. I have not tried remote WiFi on either device. The splash screen comes up for 20 seconds on both. If I double click the home button, a blank OpenHAB page is still open. If I select it, it opens for 20 seconds then goes into the background again. I can close by swiping up as usual.

Glad to help troubleshoot if I can.

Rick

digitaldan commented 6 years ago

Hi Rick , the app has been submitted to Apple, since this is a minor update I would suspect it will be reviewed in the next 24 hours and approved within 48 hours, but there is no guarantee and could be both quicker or longer

hyperbart commented 6 years ago

Got some issues here too: remote does not work. When on wifi it works perfect.

digitaldan commented 6 years ago

FYI, the app has entered review by Apple, so hopefully we get approved soon.

digitaldan commented 6 years ago

And it was just approved, let me know if this solves the issue.

Gibber commented 6 years ago

Hi, works fine now on the iPad with local WiFi. Have not had a chance to test remote access yet.

Thanks

hwarang098tkd commented 6 years ago

hi, I have iPhone SE updated. I see the notifications in "Notification" tab and all is fine .these send via rules with sendBroadcastNotification("**"). But there are no push notifications in my phone since yesterday. I tried with android phone and worked fine.

digitaldan commented 6 years ago

@hwarang098tkd thanks for the update, I just updated our APNS certificates, can you try it now?

Gibber commented 6 years ago

I am also not getting notifications on any of my apple devices since the app update. The notifications show up on myopenhab.org and I can send a test message from myopenhab.org.

hwarang098tkd commented 6 years ago

no changes. The same problem.

SBG1967 commented 6 years ago

Just tried the new app at work i.e. on remote wifi rather than home and all is working fine now. SteveG

hyperbart commented 6 years ago

Remote connection to OpenHAB instance works fine now, both over wifi and 3/4G where as previously it didn't over 3/4G.

Not using notifications here so no input on this. Thanks all and have a nice weekend.

hwarang098tkd commented 6 years ago

@digitaldan still no push notifications on iPhone .

digitaldan commented 6 years ago

For those having notification issues, can you make sure you run the app once before trying notifications? When the app launches it silently registers for notifications if myopenhab.org is configured in the remote settings.

digitaldan commented 6 years ago

If there are still issues, I'll open a new issue for us to discuss.

Gibber commented 6 years ago

Hi, There are still issues.

I launched the app to both local and remote URL and it successfully displays the current status but still no push notifications. I confirmed that OpenHAB notifications are enabled in iOS settings. If I click on the three lines in the top right corner of the app it opens a sidebar that shows my OpenHAB instance name, Notifications, and Settings. If I click on Notifications it shows all the notifications and the list is up to date and accurate. So the push notifications are getting to the device, just not being displayed in the notification center or lock screen.

hwarang098tkd commented 6 years ago

still the same. I notice that the app receive push Notifi via https://myopenhab.org/devices "Send a message to this device"...

digitaldan commented 6 years ago

still the same. I notice that the app receive push Notifi via

Thanks , that’s the issue , the process that manages oh connections is not picking up the new certificate , I’ll restart that today when I am back at my workstation !

Dasutin commented 6 years ago

Notifications are working again, and are consistent.

digitaldan commented 6 years ago

Wonderful!