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

Installable progressive web app #393

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shwetank
Copy link

Hi,

I know these are a lot of changes. Hopefully this can be accepted!

What I added:

  • I added support for Service Worker. Right now the game relies on Application Cache, but it will be deprecated soon. Service Workers are the new way to make web apps offline.
  • Support for Service Worker is also required for making it a progressive web app.
  • I added a manifest file. This is needed for it to be an installable web app.
  • Added some icons for it.

Outcome

Now the game, if served over https, will be able to be added by browsers (right now its Opera for Android and Chrome) as an installable web app on the phone's homescreen, just like any other native app. Clicking on it will open the web app in full screen just like native. It will be capable of being opened offline, thanks to Service Worker support.

If I need to break the PR into smaller peices or if you have any other feedback, then please do let me know.

Thanks,

Also added text mentioning the need to swipe on mobile devices.

Signed-off-by: Shwetank Dixit <emailshwetank@gmail.com>
Signed-off-by: Shwetank Dixit <emailshwetank@gmail.com>
Signed-off-by: Shwetank Dixit <emailshwetank@gmail.com>
Signed-off-by: Shwetank Dixit <emailshwetank@gmail.com>
Signed-off-by: Shwetank Dixit <emailshwetank@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant