Error:The connection to the server was unsuccessfull(fake) in Angularjs App -
i creating angular app intel xdk.i have data on local storage.when run app in offline message appear after few minutes "application error:the connection server unsuccessful(fake)" , stop application spontaneously.how manage this.i expect hopeful solution recover this.
app.js
$scope.checkconnection=function() { var networkstate = navigator.connection.type; if(networkstate == connection.none){ $scope.footer_message = "no network connection"; return false; }else{ $scope.footer_message = "obidos technologies (p) ltd"; return true; } } $scope.checkconnection();
if seeing inconsistent/transient error messages saying [connection server unsuccessful “www/assets/index.html”] when starting app. caused app timing out. can either increase time-out time, reduce frequency of issue, or can:
1.rename index.html “main.html”
2.create new “index.html” , put following content it:
<!doctype html> <html> <head> <title>tittle</title> <script> window.location='./main.html'; </script> <body> </body> </html>
3.rebuild app! no more errors!
Comments
Post a Comment