Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method which warn before the connection breaks #428

Open
TanjaGeray opened this issue Dec 3, 2015 · 7 comments
Open

Method which warn before the connection breaks #428

TanjaGeray opened this issue Dec 3, 2015 · 7 comments

Comments

@TanjaGeray
Copy link

Our problem is: when the connection breaks at the same time as a servercall, all informations are lost. Is there any method who inform us if the connection is very bad, so the probability that the connection breaks is very high. I know allready the connectionType but this returns only Wifi or Cellular.

@mpost
Copy link
Member

mpost commented Dec 7, 2015

Currently there is no such feature. Since you would need to receive that information on the server side, we would need to send it over in the first place. What kind of scenario do you have in mind here?

@TanjaGeray
Copy link
Author

with our application you can take a photo and write a text. our customers are always connect via mobile internet (cellular). The problem is now, when they save a text to the photo or they take a photo and the connection to the server breaks every thing is deleted. We want an option to save these data before the connection breaks. Is this possible with the client store?

@mpost
Copy link
Member

mpost commented Dec 7, 2015

Since you would have to invoke some code locally to take care of the image the local store would not suffice for you.

Did you take a look at http://tabrisjs.com ? It allows you to write your app in javascript which is directly executed on the device.

@TanjaGeray
Copy link
Author

We've finished our app already in Java. That's just a bugfix. So it's not possible to create a new app in javascript.

@mpost
Copy link
Member

mpost commented Dec 11, 2015

Currently we have no explicit solution for your scenario. We are evaluating to execute JavaScript in parallel to the Java run-time so that some code could be run locally but that will take some time until it will be available.

@TanjaGeray
Copy link
Author

Hello again,
if the connection to the internet breaks there appears an error message. But this message is different on iOS and Android (see pictures) . The dialog is not programmed by us.
is there a possibility to change the text of the dialog?

error android
error ios

@ocondrache
Copy link

Hello,

As of Tabris 1.4.8, the cryptic dialog on Android has been replaced with something more user-friendly : "Could not reach the server.".

However, currently there's no support implemented for changing the text of the dialog with something custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants