Page 1 of 2

List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 1:04 am
by Francesco

I built an app with some select menu lists coming from some RESTs to set departure and arrival point of a trip and an input (type date) to set the date of departure.The buses wich match the request should be reported into a list.
so I built a list from a specific rest with departure city, departure date, arrival city as Request and some responce mapped in a grid in a list_item.

the problem is:
When I test my app in my desktop browser (chrome) everithing is ok and all the list items coming from the rest are showed.
But when I test the app from the app tester on my mobile no list item are showed.

i guess the problem should be with the date, because after some test i tryed to don't map it to the request parameters and the list-items have been showed in the mobile tester.as in the desktop
but i need the date parameter to be entered by users and sent to the rest.
do you have any idea to solve my problem???

I shared my project with support@tiggzi.com


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 8:42 am
by Maryna Brodina

Hello! Thank you for sharing. We'll test


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 9:46 am
by Francesco

I tested the app also adding a datepicker component saving the date to a local storage variable running
localStorage.setItem('data_partenza_datepicker', $('[dsid="mobiledatepicker"] input').val());
on click event on the utton "cerca"
and then binding this new localstorage variable to the Rest request,
but the app works on my descktop browser and still doesn't work on the tiggzi app tester on my mobile (samsung galaxy SII android 4.0.3) : no list items are showed on my mobile


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 9:52 am
by Maryna Brodina

Yes, we reproduced your problem. Working on it.


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 11:11 am
by Francesco

to try the results please select "camigliatello" from the first select menu and "roma" from the second one. there should be 3 results (3 list items) for each day


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 12:25 pm
by Francesco

I was trting to find the prolem testing the inpu field (type date) as well the datepicker on a new page (Screen1) and after some test even if I dont invoke the rest service in any event on this page when i test the app and i go to this page on my desktop the list is showed ???
is there any problem with the desktop tester, or with the saving of projects??????????


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 12:28 pm
by Maryna Brodina

We are trying to figure out what is the problem. I'll update when get any information.


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 2:07 pm
by Francesco

Still trying to solve....
on Screen2 in my project i tried to use an input component (type text) to map it on my request parameter in the rest service and the app works on my mobile.

I don't understand why it doesn't work if i map to the same request parameter a lable obtained by retriving data through a set property event that uses the localstorage variable i previously set through the java script:

localStorage.setItem('data_partenza', Tiggzi('input_dataPartenza').val());


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 3:04 pm
by Maryna Brodina

In service REST_getCorse you have you have request parameter A_DATA_PART with value 2013-01-19 (in format yy-mm-dd). The same format should be for your DataPicker component on StartScreen. I tested in desktop browser and using Tiggzi Tester - works properly.


List from rest working on desktop but neither on mobile tester nor as apk

Posted: Thu Jan 17, 2013 3:26 pm
by Francesco

on my StartScreen I'm using a input field type date (named input_data_partenza) instead of tiggzi datapicker component and when I drag the input field on the StartScreen it shows gg/mm/aaa, but if I run:

localStorage.setItem('data_partenza', Tiggzi('input_data_partenza').val());
on click event of the button Tiggzi('button_cerca_il_viaggio')

and then i run another java script:
val = localStorage.getItem('data_partenza');
alert(val);

the alert shows me a date like aaaa-mm-dd

and when i test on the desktop the list items are shown but when i test on my mobile they are not.

is it possile that to solve the problem i have to set the A_DATA_PART to date type in the server side of the rest????