selecting Page Load instead of Page Show for service invokation is a good strategy to avoid too many queries to Appery.io, taking into account data in Appery.io MongoDB changes seldom (i.e. once or twice a month)?
-If answer to previous two questions is yes, can you confirm if this is the expected behaviour of such implementation in the following scenarios?
a) I run the app for the first time in a device. I guess PageLoad event is triggered (so service is invoked for the first time), also Page Show. Let's assume comunication with Appery MongoDB succeeds, data will be stored in LocalStorage and then displayed. Right?
b1) I switch from this app screen to another, and then get back. Connectivity is working fine. I guess PageLoad event is not triggered (so no query to Appery MongoDB is sent). Data displayed on step a) will be shown again. Right?
b2) I switch from this app screen to another, and then get back. Connectivity is broken. I guess PageLoad event is not triggered (so no query to Appery MongoDB is sent). Data displayed on step a) will be shown again. Right?
c1) I put the app in background (i.e. pause event is triggered) and then I get it back to the foreground (i.e. resume event is triggered). Connectivity is working fine.
I guess no PageLoad is triggered, data displayed on step a) will be shown again. Right?
c2) I put the app in background (i.e. pause event is triggered) and then I get it back to the foreground (i.e. resume event is triggered). Connectivity is broken.
I guess no PageLoad is triggered, data displayed on step a) will be shown again. Right?
d1) I powercycle the device and run the app again -i.e I run the app for a non first time-; connectivity is working fine. I guess this situation is similar to step a), the only difference is that I already got data in LocalStorage; and this data is updated with results from MongoDB, This new obtained data is also displayed. Right?
d2) I powercycle the device and run the app again -i.e I run the app for a non first time-; connectivity is broken. I guess this situation is similar to step a), the only difference is that I already got data in LocalStorage; since app cannot reach Appery.io MongoDB, "old" data in LocalStorage is displayed. Right?
Sorry if question is too long or it gets outside Appery support, and thank you for your help!
Carlota F