openhab / org.openhab.ui.habot

A chatbot for openHAB using machine-learning natural language processing from OpenNLP
Eclipse Public License 1.0
65 stars 31 forks source link

Q: Access via OpenHab iOS app? #1

Open HVR88 opened 6 years ago

HVR88 commented 6 years ago

iOS has a native OpenHab App, so leaving aside philosophical arguments about what progressive web apps mean for the web and native platforms, is there any possibility that Habot functionality/access can eventually be baked into the app?

ghys commented 6 years ago

Hi, good question ;) I'm trying to keep the HABot API friendly enough (including an incoming UI paradigm) so that this remains a possibility, but you can still add it to the iOS home screen from Safari - without the added bells and whistles, but Apple is apparently committed on getting them into future iOS versions :)

stritti commented 6 years ago

I thought in iOS 11.3 the support for PWAs will be improved in Safari, but I have to login still all the time I start the App.

Probably the App should be updated to use manifest. See e.g. https://docs.pwabuilder.com/what/is/a/pwa/2018/02/03/what-is-a-manifest.html

I created issue #10 for this.

ghys commented 6 years ago

On chrome there's a way to save the credentials but not in Safari. I haven't found a quick win solution for that yet. One option would be to use the cordova plugin for quasar and build a full app for iOS, adding some settings to specify the remote URL and the credentials. Push notifications and audio capture could also be done with cordova plugins. I don't own Apple devices so it's pretty low on my list, but if anyone wants to give it a spin ;)

ghys commented 6 years ago

I gave it a spin after all 😁, and it's promising! see #13. You'll have to compile the app yourself for now.