Page 3 of 5

web apps older os

Posted: Mon Apr 15, 2013 9:56 am
by Kateryna Grynko

Hi Michael,

logins fails,
Working on it.

alert js on book button on booking screen doesn't work on any mobile os, and follow nav to setings screen doesn;t fire, both on ios6.1

On Android 4 and iOS 6.1 the message is displayed and there is navigation to page after message send. You should add handler on Error event for Rest service "SendGrid_MailSend" on Book page. Maybe the problem is in incorrect Rest Service parameters.

As regards the hidden dom, if variable is populated by db, persistence shoudn't be needed, but will localstorage be hidden,
If you don't use LocalStorage variable it won't be displayed and affect the app work. You can clear all the localStorage variables using JavaScript:
codelocalStorage.clear();/code
and if not can we restrict access to the web app to mobile phone only
You can limit mobile browsers by checking User Agent parameter (http://en.wikipedia.org/wiki/User_agent) when load. For example, here is the check if user uses Windows:
codeif(navigator.userAgent.indexOf("Windows") >= 0) {
alert("You are working in Windows");
}/code


web apps older os

Posted: Mon Apr 15, 2013 10:28 am
by Michael4771079

Hi Katya
thanks for the reply,
as ios or android app all works, no probs,

as web app, on ios and android browser js on book button does not work, nor does the nav to settings, it doesn't work on desktop pc as web app either.

there is a js error alert on sendgrid, and that doesn't work either as web app.


web apps older os

Posted: Mon Apr 15, 2013 2:15 pm
by Kateryna Grynko

Hi Michael,

Book button doesn't work. Are there any errors in Chrome console on desktop browser?


web apps older os

Posted: Mon Apr 15, 2013 2:40 pm
by Michael4771079

no errors in chrome, no errors show under errors in firefox, but under "all" in console I get this, see screenshot

Image


web apps older os

Posted: Mon Apr 15, 2013 4:02 pm
by Maryna Brodina

Hello! Working on it.


web apps older os

Posted: Mon Apr 15, 2013 4:03 pm
by Michael4771079

thx


web apps older os

Posted: Mon Apr 15, 2013 6:56 pm
by Maryna Brodina

The Book button doesn't work due to security restrictions on browser (Access-Control-Allow-Origin). You send REST request to remote server sendgrid.com from your web app. After you publish your app on domain "Use Tiggzi Proxy" won't work. As a workaround yo can use hybrid app (apk, ipa), or create your own service (or Proxy for sendgrid) to send emails. One more way is to find another service which allows to send cross-domain requests.

Did you get logins functionality working?


web apps older os

Posted: Mon Apr 15, 2013 7:24 pm
by Michael4771079

Thanks Marina,
however,
sending emails through sendgrid is successful whether app is published as web app on tiggzi server, or apk, ipa on device, the service works perfectly,

its the js on success or error alert of the service which doesn't work, or the nav to settings screen on success of sendgrid service that doesn't work, it just sends the email with no alert or navigation.

login in works on apk,ipa on devices and (tiggzi tester from builder and all browsers on pc) including on this sim

http://tweakingwp.com/mobile-simulator/

but not on mobile browser,
with the exception of ios 6.1.2 as a web app

As a web app on mobile browsers app allows register, but fails on login and success and error alerts plus nav after success


web apps older os

Posted: Mon Apr 15, 2013 8:21 pm
by Maryna Brodina

Sending emails through sendgrid works because GET request with all parameters to sendgrid.com is successful. After that sendgrid.com sends email to your app which can't be received because of security browser restrictions. Response became equal to empty string and can't be accepted as json - that's why you get this error and not working events. There is nothing we can do here. I described workarounds above.


web apps older os

Posted: Mon Apr 15, 2013 8:45 pm
by Michael4771079

Thank you for explaining, so on a web app js or other events which relies on a success or error report from service won't work. Ok I try something else,

any news on the login