Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

web apps older os

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

web apps older os

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

web apps older os

Hi Michael,

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

web apps older os

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

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

web apps older os

Hello! Working on it.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

web apps older os

thx

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

web apps older os

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?

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

web apps older os

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

web apps older os

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

web apps older os

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

Return to “Issues”