Add Disclaimer/Terms Agreement to App

How do I add a disclaimer/agree terms alert, which only appears on when the user opens the app for the first time? Thanks in advance!

I would store the state on local storage. flip the flag once user sees the alert and confirmed.

1 Like

Do you mind providing me with an example?

-> use localStorage.getItem(‘itemName’) to retrieve data from localstorage
-> use localStorage.setItem(‘itemName’, ‘value’) to set data

there are multiple angularjs adaptions out there… if you need it.

Keep in mind to only use localstorage for small amount of data (max 5MB)
you can only store string values --> so if you want to store an object or array use JSON.stringify and JSON.parse and if you want to store numbers use parseInt(NumberString, 10); to get the real number.