I am looking to add a feature to my web extension that will give the user a notification after x amount of times using my add-on, asking for them to rate my add-on. When the user clicks the button and is directed to the extension’s AMO page, I want the notification to be forever hidden.
I will obviously need to use my background.js file to implement this. I was just curious how long the background.js file will keep variables active for before they are reset? I’ll be storing a variable in the background.js file that will keep track of how many times the user has used the add-on, so obviously I don’t want this variable to reset every time that the user restarts Firefox.
On a side note, can anyone think of a better way to go about implementing the feature that I have described?