Help!! rest service not working properly on device
Hi,
this is the last item I need to solve in this app.
All is working as expected in the browser but as apk or when I scan the qr code to test on iphone a "get" service which is called on page load fails on device, but works in browser
this is the page with 3 items that were called from db on page load.
this is the item I am deleting
when I click delete the item is deleted from array, a put service is run to update db and this code is used to reload the page
$.mobile.changePage("checkout.html", { allowSamePageTransition: true,
transition: "flip", reloadPage: true });
this is the result after item is deleted
item is deleted, db updates, page reloads, get service is called on load and the remainder item populate the page.
I can see in the console all the services run, result is perfect.
when I try the same as apk or in browser on iphone this is the result after the item has been deleted and page reloads
so for some reason the get service wasnt read,
however I know it has been called because if I then click menu and then click checkout page again the service populates the page with the remaining 2 items
I dont think its a logic problem as all works in the browser.
:
Can someone help solve this issue, I thought if it was possible in the browser then it should work in an app?
Thanks