RinteRface / shinyMobile

shiny API for Framework7 (IOS/android)
https://shinymobile.rinterface.com
407 stars 75 forks source link

shinyMobile on ShinyProxy #216

Open hcstubbe opened 2 years ago

hcstubbe commented 2 years ago

I am trying to host a shinyMobile app with progressive web app support on the most recent version of ShinyProxy (2.6.0). However, PWA seems to be not supported. Do you have any experience hosting shinyMobile on ShinyProxy? I also brought up the question here.

Thank you!

Nithador commented 2 years ago

Hi, this is most likely due to the ShinyProxy using iframe for embedding the apps in their default links. Let's suppose the app is hosted at http://www.shiny-proxy.com and the app is at http://www.shiny-proxy.com/app/superapp try using app_direct instead of app in the address in this case it would be http://www.shiny-proxy.com/app_direct/superapp. In shinyproxy by default that is the address directly to the app and not the one embedded in the iframe.

hcstubbe commented 2 years ago

Hi, thank you for looking into this. I discovered toady that this works for Safari, but not for Firefox or Chrome. I managed to work around it, but this required forking and modifying ShinyMobile as well as using the app_direct link. Any Idea, why this could be the case? Using ShinyMobile as PWA really goes a long way in deploying scalable apps. But my solution is rather a hack than any proper way of deploying it as PWA.

kmezhoud commented 2 years ago

Hi, In my case dockerize shinymobile App works with shinyproxy. In some case shinyproxy does not start depending on web browser. Could you explain more about "PWA seems to be not supported." with screenshot or error message or shinyproxy Log? Thanks, Kirus

hcstubbe commented 1 year ago

Hi, In my case dockerize shinymobile App works with shinyproxy. In some case shinyproxy does not start depending on web browser. Could you explain more about "PWA seems to be not supported." with screenshot or error message or shinyproxy Log? Thanks, Kirus

Hi, when I use Chrome's Lighthouse extension, I get notified that the srvice worker is not found, because it is regiestered to the wrong address. You can find a more detailed description including the Lighthouse report here. The PWA capability works in a limited way without service worker. In any case the setup is quite complicated. Let me know, if you find any solution to this! Thank you!