@twa you can pass around your store context in your router/index.js export default function or other means like exposing it from a boot file or tye store/index.js file, then import it where you need it. Make a search there should be topics about it in here, or refer back in the docs for some examples, ie. Boot, router or vuex sections.
You are correct with using a middleware/vue router navigation guard.
Edit: answered you on a relevant thread that you commented on.
Just like you are using storage plugin as I’m using advance HTTP plugin.
Cordova loads plugins after when device is ready. If you try to use plugin directly when app is booting then these plugins would not be available. So I used “deviceready” event to access http plugin and you can use the same event.
@wpq You have a range between 0 and 16777216, map these to your numbers (like multiply by some constant number or use any other formula you would like) and then convert the computed number to hex code. Then, just add style=“background-color: #computed-hex” on that tag.
** you can map hex directly, but would require some extra coding.
Update: I managed to fix it by just adding types to the cordova plugin folders! I just whipped up some really quick type definitions for NavigationBar (and StatusBar already had typedefs, which is cool) and no more horrible red lines. Leaving this here for anyone who might be having the same problem!