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

Experiment: Mobile app using Flutter #246

Open
3 of 10 tasks
Hanziness opened this issue Jul 20, 2022 · 0 comments
Open
3 of 10 tasks

Experiment: Mobile app using Flutter #246

Hanziness opened this issue Jul 20, 2022 · 0 comments
Assignees
Labels
experiment ⚠️ Bigger feature or change that may or may not make it into the final product

Comments

@Hanziness
Copy link
Owner

Hanziness commented Jul 20, 2022

Since web-based apps are a bit limited in terms of (mobile-)native functionality (like control over notifications), it might be wiser to publish the application as a mobile app instead of a PWA (or TWA on Android). A seemingly not-so-difficult way would be Flutter and its webview_flutter package. This package also allows communication with the Dart code through so-called JavaScript channels - this would allow the Dart code to handle the notifications and other stuff and integrate much better with the operating system.

This is marked as an experiment as wrapping the app in a mobile app's web view might prove slower and more buggy than directly using a PWA in the browser on the platform. The goal is to explore if this solution can work and provide more benefits over a traditional PWA.

Tasks

  • (Basics) Wrap the PWA in a Flutter WebView
  • (Basics) Add an optionally loaded module to the web app that interfaces with the mobile app (if the PWA is running inside a mobile app - this can be potentially helped with a separate query parameter)
  • (Basics) Verify app functionality and performance
  • Version number should follow the PWA app version
  • The web app should be packaged alongside the mobile app (so that everything would be available offline)
  • A build script should pull the appropriate tag (like v1.2.0) from GitHub into the Flutter project and zip it
  • Provide (actionable) notifications and optionally a persistent notification
  • Maybe even provide an app widget on Android 👀
  • Since Flutter now supports creating desktop apps, that form of packaging could also be explored
  • (Much far away) Add the ability to sync the mobile and web apps
@Hanziness Hanziness added the experiment ⚠️ Bigger feature or change that may or may not make it into the final product label Jul 21, 2022
@Hanziness Hanziness self-assigned this Jul 26, 2022
@Hanziness Hanziness mentioned this issue Aug 8, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experiment ⚠️ Bigger feature or change that may or may not make it into the final product
Projects
None yet
Development

No branches or pull requests

1 participant