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

shinyMobile on ShinyProxy #216

Open
hcstubbe opened this issue Jan 30, 2022 · 4 comments
Open

shinyMobile on ShinyProxy #216

hcstubbe opened this issue Jan 30, 2022 · 4 comments
Labels
question Further information is requested

Comments

@hcstubbe
Copy link

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

Nithador commented Jun 9, 2022

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

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

kmezhoud commented Nov 3, 2022

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

hcstubbe commented Dec 5, 2022

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!

@DivadNojnarg DivadNojnarg added the question Further information is requested label Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants