Is there anyone who has an idea of how we can package a Superset dashboard as an Android application?
I tried to wrap the url with a WebView but packaging it like this doesn’t create an APK that is user friendly. The widgets and filters don’t work as expected as shown below:
Please correct me if I’m wrong, but it seems your dissatisfaction is coming from the less then ideal responsive design of the Superset UI.
Can you try opening the same page in your desktop browser and resize the window to a mobile-like resolution (or use dev tools to resize the window to the desired target resolution) and check if the layout is the same? Or, better yet, open the same page in browser on the mobile device.
If it is the same, I suspect this is a limitation in the responsive layout of the Superset UI, the solution would be to deploy superset with a different UI (which is probably what the 3rd party apps are doing). If it is different, we can check if there’s some missing parameter that the page is not receiving.
I agree with Diana and from discussion online this looks like a known issue with Superset.
I’m not sure how comfortable you are with CSS and making custom changes, but you may be able to add custom code to change the UI on small screens. This article goes over the steps for how to supply custom CSS, and this discussion has an example CSS snippet.
Please read the article carefully as it goes over the downsides of this approach, and also note the CSS will likely need to be modified for your version of Superset and your desired outcome.
Another less technical / quick fix might be to have two separate dashboards that use the same widgets. One would be configured to optimize for desktop view and the other would be configured to optimize for mobile (one widget per row, for example).
Hello @Diana
When resizing the page on a web browser to a Samsung Galaxy A51 device, we get the desired UI (like that done by the third party app). See the screenshot below of the same view as the screenshot above.
Does editing the CSS still apply if I have been able to load the url in a smaller device and view the desired UI? The challenge now is getting that same UI when packaging the website as an APK.
Hi @Kymoraa . Sorry for the late reply, I must’ve missed it somehow. You don’t need to edit the CSS If you’re happy with how that looks.
As for packaging it in an apk, I’m not sure why this would be better than just loading superset in a browser on the phone. If you have any trouble I recommend reaching out to the Superset community for support as someone there may have tried to do this before!
Sure.
I think the field teams field it easier to have all the websites available as Android applications as opposed to loading them on the browser.
Thank you @gareth. I can check in with the Superset community if all our current attempts fail.