Skip to content

Instantly share code, notes, and snippets.

@quentin-aslan
Created August 10, 2023 22:54
Show Gist options
  • Save quentin-aslan/8c52cfe13f7ccba9ff733f55a9744a70 to your computer and use it in GitHub Desktop.
Save quentin-aslan/8c52cfe13f7ccba9ff733f55a9744a70 to your computer and use it in GitHub Desktop.
This gist provides a Vue.js component with step-by-step instructions to guide users on installing the PWA (Progressive Web App) and enabling notifications on both Android and iOS devices. It's crafted to be user-friendly with the inclusion of emojis for visual guidance. Designed to enhance user experience, this component emphasizes the importancโ€ฆ
<template>
<div class="container">
<div>
<h2>Installation Guide</h2>
<p><strong>Note:</strong> This website is not fully available unless you install it as a PWA. Please follow the instructions below to install and get the best experience. ๐Ÿš€</p>
<h3>iOS (Safari) ๐Ÿ</h3>
<h4>1. Installing the PWA:</h4>
<ol>
<li>Open the application in the Safari ๐ŸŒ browser.</li>
<li>Tap the share button (a box with an arrow pointing up) ๐Ÿ” at the bottom of the screen.</li>
<li>Scroll through the options and tap on "Add to Home Screen" ๐Ÿ .</li>
<li>Name the app if you wish, then tap on "Add" on the top right.</li>
<li>The app icon will appear on your home screen. You can launch it like any other app ๐Ÿš€.</li>
</ol>
<h3>Android ๐Ÿค–</h3>
<h4>1. Installing the PWA:</h4>
<ol>
<li>Open the application in the Chrome ๐ŸŒ browser for Android.</li>
<li>Tap the "โ‹ฎ" button on the top right to open the menu.</li>
<li>Select "Add to Home screen" ๐Ÿ  from the menu.</li>
<li>A popup will appear. Tap on "Add" or "Install" ๐Ÿ“ฒ.</li>
<li>The app icon will appear on your home screen. You can launch it like any other app ๐Ÿš€.</li>
</ol>
</div>
</div>
</template>
<script setup lang="ts">
</script>
<style scoped>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment