Hi there,
Load and Set Global Variable value from DB before app launch
I need to load value from localstorage / db on each device and set it to global variable before the app launch event,
I tried the app onReady function but with this period my other class "DBOperation" isn't ready yet (I setup the up and connection in this class initialization)
any suggestion on how to do this?
PS: I do realize there are 2 ways of doing "Globa Variable" one is to define a variable before the Extdefine of your class, the other is to use app.namespace to be honest I don't mind whicever method I need to use to complete this requirement).
Load and Set Global Variable value from DB before app launch
Aucun commentaire:
Enregistrer un commentaire