cordova-background-geolocation-SampleApp icon indicating copy to clipboard operation
cordova-background-geolocation-SampleApp copied to clipboard

Could not connet to server

Open gagan-bansal opened this issue 7 years ago • 8 comments

Hi, this app and background repository seems very useful. but i could not test the app. I got error message "Connection to server was unsuccessful"

I tried with google play store app as well as I installed this repository and deployed the build on my phone. Along with this repo I had run your node js server and configured the app to send data to my server. But still the same error "Connection to server was unsuccessful" .

gagan-bansal avatar Apr 23 '18 03:04 gagan-bansal

I need context on this error. Is this generated from Javascript? Cordova CLI? adb logcat? I have no idea where this came from.

christocracy avatar Apr 23 '18 03:04 christocracy

Is the app from play store working on your phone?

gagan-bansal avatar Apr 23 '18 03:04 gagan-bansal

Yes, of course.

You haven’t answered my question.

christocracy avatar Apr 23 '18 03:04 christocracy

Its generated from JavaScript app. Here is the screen-shot: screenshot_2018-04-23-09-35-44

gagan-bansal avatar Apr 23 '18 04:04 gagan-bansal

This is not a Plugin error. This is an error from Cordova.

christocracy avatar Apr 23 '18 16:04 christocracy

Thanks @christocracy I'll try run the app in debug mode for more info. But the same message I got on the app that I had downloaded from the play store.

One more thing is it necessary to give the unique user id as github id, I remember now that I had given some random name.

gagan-bansal avatar Apr 24 '18 03:04 gagan-bansal

Any string username that makes sense for an http /endpoint

I installed the sample app from play store today without incident.

On Mon, Apr 23, 2018 at 11:57 PM Gagan Bansal [email protected] wrote:

Thanks @christocracy https://github.com/christocracy I'll try run the app in debug mode for more info. But the same message I got on the app that I had downloaded from the play store.

One more thing is it necessary to give the unique user id as github id, I remember now that I had given some random name.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/transistorsoft/cordova-background-geolocation-SampleApp/issues/101#issuecomment-383795824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA6l1OeB91CcELN31VM263FQ58ARtztks5trqKQgaJpZM4TfNRr .

-- Snet form Gmail Mobile

christocracy avatar Apr 24 '18 04:04 christocracy

I'll check this app on some other device.

gagan-bansal avatar Apr 24 '18 09:04 gagan-bansal