Hi everyone. I'm developing a project using Resco Mobile Offline HTML and I got some different problems when the app is online or offline.
When it's "online":

I can create and delete entities using my HTML but I can't update them. I got stuck for hours trying to update a field before I figure out that the problem occurs only when I'm online. Ex.:
I have this account:

Then i changed its "Account type" from "Fornitore" to "Gruppo" and saved
Before After

If i search at CRM it will remain as "Fornitore"

and if i reopen my record:

So, after click on "Save" the value doesn't change on CRM or on my App. Only if I go offline, update (on this point it's already updated on my cellphone) and then Synchronize (to send it to CRM):

On CRM

The JS method used to update
//JSBridge.js Version: 10.1
function update() {
MobileCRM.DynamicEntity.loadById(
'account',
window.location.search.substring(1), //accountid
function (entity) {
var plab_postalcode = document.getElementById('plab_postalcode').getAttribute("data-id");
...
entity.properties.plab_revenuerating = document.getElementById("plab_revenuerating").value; // For optionset and text
if (plab_postalcode != '' && plab_postalcode !== null)
entity.properties['plab_postalcode'] = new MobileCRM.Reference('systemuser', plab_postalcode); //for lookups
entity.save(error_callback)
},
function (error) {
MobileCRM.bridge.alert('An error occurred: ' + error);
}
);
}
function error_callback(err) {
if (err !== null)
MobileCRM.bridge.alert('error: ' + err);
else
MobileCRM.bridge.alert('Account saved!');
}
When it's "offline":

I can create and update entities but when I delete them on CRM, make the sync on Field Service App and open the entities list, it remains on my app.
Ex.: I created an account called "Feminho" and deleted on CRM. After that I made a sync
Offline (entity remains) Online (deleted)

It's confusing since when I change to online those entities disappear and, if I change it back to offline those entities reappear... So, I have to delete those entities twice: once on CRM and once on Field service app.
Those are only some of the problems I'm heading with this new adventure. Thank you all