Backendless Support
 
Answered

Unable to resolve host "api.backendless.com" Error code ?

Unable to resolve host "api.backendless.com": No address associated with hostname

what is the backendless exception error code for this message ?

Leave a Comment

Comments (3)

photo
1

Did you initialize the app in the MainActivity

I mean

Backendless.initApp(Context, String AppId, String Secret key, String version no);

photo
1

Yes, this message I receive in case of no internet connection

photo
photo
1

Check for internet connectivity in a method(isConnected) that return a boolean true if their is internet connection

Then in onCreate method of MainActivity

if(isConnected){ // the main code } else {// show a snackbar, a dialog or a toast to tell the user that connection is down}