UCL / kapta-mobile

Progressive Web App enabling users to generate maps from WhatsApp chats
Apache License 2.0
0 stars 1 forks source link

Store if alert has been shown in Desktop/ios #64

Open MarcosMoreu opened 2 weeks ago

MarcosMoreu commented 2 weeks ago

To avoid showing the alert everytime.

tcouch commented 1 week ago

Which alert is this?

MarcosMoreu commented 1 week ago

when iOS or Desktop an alert is shown everytime, which can be annoying for the users. Perhaps we can keep the alert on first load only, and then after first load add a message at the top of the home screen? Not sure what the best solution is, but we definetly need to tell users that the app is (as of now) designed for android devices

tcouch commented 1 week ago

Hmm weird. I can't see desktoporiosPrompt being used anywhere in main at the moment. Has it been taken out?

MarcosMoreu commented 1 week ago

we just used 'alert'. Line 132 in main.js. I guess it worked as a temporary solution

acholyn commented 1 week ago

we could set this in localStorage (which would survive until explicitly cleared) or could set a cookie (which we can set an expiry on)