sourceryapp / sourcery-web-app

Progressive Web App for Sourcery
https://sourceryapp.org
GNU Affero General Public License v3.0
4 stars 0 forks source link

Prompt user to install as PWA? #134

Open mueller-alex opened 4 years ago

mueller-alex commented 4 years ago

I thought of this the other day. I'd imagine most people don't know what a PWA is or that they can even install a website onto their phone as an app. My question is if, maybe after registering, we want to prompt the user to install Sourcery on their device, or alternatively leave a note in the dashboard about it (although I'm not sure how to check if it's installed in order to get rid of this). I believe Chrome for desktop does this natively without needing us to add anything but I'm not sure when it chooses to show this prompt or about Safari, Chrome iOS, or Chrome Android. I know Safari iOS allows for displaying a banner to install the website's app but I believe this is only if the app is in the App Store as opposed to a PWA.

mueller-alex commented 4 years ago
foundhistory commented 4 years ago

This is a great idea. Chrome on Android already does this, but we should make it happen on all platforms/browsers if possible. Thanks, Alex.


From: Alex Mueller notifications@github.com Sent: Friday, February 21, 2020 1:41:51 PM To: GreenhouseStudios/sourcery-web-app sourcery-web-app@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [GreenhouseStudios/sourcery-web-app] Prompt user to install as PWA? (#134)

I thought of this the other day. I'd imagine most people don't know what a PWA is or that they can even install a website onto their phone as an app. My question is if, maybe after registering, we want to prompt the user to install Sourcery on their device, or alternatively leave a note in the dashboard about it (although I'm not sure how to check if it's installed in order to get rid of this). I believe Chrome for desktop does this natively without needing us to add anything but I'm not sure when it chooses to show this prompt or about Safari, Chrome iOS, or Chrome Android. I know Safari iOS allows for displaying a banner to install the website's app but I believe this is only if the app is in the App Store as opposed to a PWA.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FGreenhouseStudios%2Fsourcery-web-app%2Fissues%2F134%3Femail_source%3Dnotifications%26email_token%3DABHCZNJ4EFHVWXMMQWUIINLREAN67A5CNFSM4KZIIQ5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPMCO3Q&data=02%7C01%7Ctom.scheinfeldt%40uconn.edu%7Cf516829fb2ad418cf58608d7b6fdb780%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C637179073129380180&sdata=oBPjI6iqLyA2k43fYyky8igUy7VTrS3jZsI21vsiTj8%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABHCZNLFY4SK3SIHE7VXS2DREAN67ANCNFSM4KZIIQ5A&data=02%7C01%7Ctom.scheinfeldt%40uconn.edu%7Cf516829fb2ad418cf58608d7b6fdb780%7C17f1a87e2a254eaab9df9d439034b080%7C0%7C0%7C637179073129380180&sdata=ddm%2FhRyYftnMgcGTMLpNQ51v%2B4DSgLbH1qjhs1aUhpc%3D&reserved=0.

bdaley commented 4 years ago

Minor update

I kind of want to hold off on this one for at least a few weeks. WWDC20 is less than 2 weeks away. Before we make any adjustments, it's probably worth seeing if Apple announces any changes to Safari on iOS in relation to PWAs. They've slowly been rolling out new features and it's possible that they'll add the pop-up.

In the event that Apple doesn't add the pop-up, we'll want to provide instruction for those users. Below is an example of an instructional tool-tip. (Not sure whether the instructions are still accurate in current versions of iOS.)

Here are a few of the better examples I could find for accomplishing this:

Related to @ALMR-Designs post, here's some Nuxt-specific code to control and customize the install banner that appears in Chrome. I'm not sure we're at that point, but I wanted to document it somewhere.

bdaley commented 4 years ago

Just updating to note that Apple did nothing for PWAs. I guess we proceed with some type of install notification.