Scratchaddons: [Feature] Telling the user that there is an update available

Created on 18 Aug 2020  Â·  12Comments  Â·  Source: ScratchAddons/ScratchAddons

We can use chrome.runtime.getManifest().version to get the current extension version, and then we can fetch the manifest on raw.githubusercontent.com. We can also fetch the CRX file from the chrome web store, extract it and read the manifest.json for more accuracy, but that requires more work and libraries.

If the manifest version doesn't equal, the user will be notified. We need to discuss a way to notify the user. If the user then opens the pop-up (the window that appears when clicking the extension icon), a message will appear saying that there is an update available. It also tells the user how to update the extension.

In the options page, there should also be a switch that disables/enables update notifications (enabled by default) and a number input which allows the user to change the update check interval. (I recommend 1 hour as the default value)

(I know that Chrome updates extensions automatically, but this is just something useful idk)

core enhancement

Most helpful comment

doing git pull every morning isn't that hard

All 12 comments

I don't see the point really, Chrome updates quite often

This is helpful for people sideloading.

On Tue, Aug 18, 2020, 11:43 AM World_Languages notifications@github.com
wrote:

I don't see the point really, Chrome updates quite often

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ScratchAddons/ScratchAddons/issues/73#issuecomment-675556728,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFQENB432GW36MW3GFYSBZLSBKOSNANCNFSM4QDT6LSA
.

@easrng Can you elaborate "sideloading"?
Also, hi! I don't think I saw you before in the repo? Looks like you have some Scratch related repos, are you interesting on adding them as addons?

I mean adding them manually, not from a store. Sorry, it's usually used
more in the mobile dev/jailbreak scene. I'm A-E- btw and I think I will
make some addons at some point. This project is really cool.

On Fri, Aug 21, 2020, 6:14 PM World_Languages notifications@github.com
wrote:

@easrng https://github.com/easrng Can you elaborate "sideloading"?
Also, hi! I don't think I saw you before in the repo? Looks like you have
some Scratch related repos, are you interesting on adding them as addons?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ScratchAddons/ScratchAddons/issues/73#issuecomment-678538459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFQENB575SOVGCSCFIVQHD3SB3WWBANCNFSM4QDT6LSA
.

this is very off topic but i think it would be cool if there was like a global notification system so that addons can send notifications and stuff and also maybe once in a while, a notification could be pushed to all users (eg. Version 7 now available, update now) or something

@JeffaloBob The addon loader already proxies sent notifications, but at the moment they aren't stored anywhere after being sent. If we implement muting (#9) maybe we can let the user know what notifications they missed?

This could be a dev mode only feature. The chrome web store updates too frequently for this to be an issue.

As far as I see, this won't work because of the way we do the system. Very soon, we will bump the version to 1.5.0 on gh, and users would be notified if this were implemented.

I don't think this is needed. My browser auto-updates.

I don't think this is needed. My browser auto-updates.

This is useful as easrng said,

This is helpful for people sideloading.

I don't think this is needed. My browser auto-updates.

This is useful as easrng said,

This is helpful for people sideloading.

Yes, but it isn't helpful for normal users at all because there is no way to force the browser to update an extension - what's the point of an "update available" message if you can't install it?

doing git pull every morning isn't that hard

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scratchusernamemrtbts picture scratchusernamemrtbts  Â·  9Comments

WorldLanguages picture WorldLanguages  Â·  10Comments

pufferfish101007 picture pufferfish101007  Â·  4Comments

Hans5958 picture Hans5958  Â·  7Comments

WorldLanguages picture WorldLanguages  Â·  11Comments