-
Notifications
You must be signed in to change notification settings - Fork 24
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
The functionality stops working when debug config is set to false #97
Comments
When iOS app is killed, your app is terminated. It won't reboot in the background until the device moves at least 200 meters from the last known location. See this video. |
If the app doesn't come back when terminates, shouldn't that be same when the debug is set to true? But the app is booted when the app is killed when the debug is set to true. And as per the doc, I guess the 200meters is for the significantChangesOnly config. |
When an iOS app is terminated, your app is terminated. When the device moves at least 200 meters, iOS will reboot your app in the background and the plugin will resume tracking. No, it's not just |
When we set debug is true, app works perfectly fine across all scenarios including app gets killed or gets into background. When we set debug is false, we expect same behavior but once app gets killed, we don't receive any location update even with actual field test. Let us know what details we could provide from our side to investigate this issue further. Thanks |
Would appreciate if you could please help us with this. We would like to see the same behavior for Debug set to true and false. It works perfectly with debug set to true but when set to false it doesn't. Please let us know if you need any more details from us in order to investigate this. Your help is very much appreciated. Thanks |
Here's a test I did today with the demo app running with There is NO CHANCE that |
Chris,
You might be right and we might be doing something different from our side.
We are not native script expert like you and are looking for your help to
close the issue here.
We are willing to purchase plugin or hiring you for couple of hours to look
at the way we have integrated this and why it's not working with debug mode
set to false.
It will be lot easier if we could connect over 10 minutes quick call to
discuss next steps here.
Let me know your views.
Thanks
…On Dec 30, 2017 5:59 AM, "Chris Scott" ***@***.***> wrote:
Here's a test I did today
<http://tracker.transistorsoft.com/transistor-nativescript?device=NativeScript-1A5A05FD-CE44-476D-8FC5-4918AF128FCE&end=2017-12-29&start=2017-12-23>
with the demo app running with debug: false. The app was first booted
then terminated.
There is *NO CHANCE* that debug: false affects tracking. None.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe22km7c-QAVrJVlT6ilxWwDidpCmEks5tFYPRgaJpZM4RK43S>
.
|
@christocracy Wish you a Happy New Year. Can you let know your availability for next couple of days, so we can get on a call and discuss the next steps? Also, let know the preferred mode of call. |
I've had the demo app running since Dec 28 with |
@christocracy thanks for getting back to us. Obviously, we are not doing something right. We are not expert NativeScript developers. We are happy to purchase the paid version of the plug-in, but we need your help to resolve this. Would you be open to looking at our code, settings etc. to help us resolve this issue. Thanks |
Feel free to post what you're doing (ie: your Javascript) in addition to logs from the plugin here. You can fetch logs from the plugin using the |
Thanks Chris. I will post the code snippet and invite you to our code
repository.
Are you available for a quick call so we could explain what we are trying
to achieve and it will be easier to answer any additional questions you may
have.
Thanks
…On Jan 3, 2018 11:48 PM, "Chris Scott" ***@***.***> wrote:
Feel free to post what you're doing (ie: your Javascript) in addition to
logs from the plugin here. You can fetch logs from the plugin using the
#getLog method.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe257__4tX4GlnleSqwMi9KaJP9KDEks5tG8SOgaJpZM4RK43S>
.
|
It’s not necessary at this point to contact you until I see code and logs.
|
Ok let me send you code snippet and invite you to the repo in an hour.
Let me know if you need anything else here...
…On Jan 4, 2018 9:08 AM, "Chris Scott" ***@***.***> wrote:
It’s not necessary at this point to contact you until I see code and logs.
On Wed, Jan 3, 2018 at 10:37 PM cmthakkar ***@***.***>
wrote:
> Thanks Chris. I will post the code snippet and invite you to our code
> repository.
>
> Are you available for a quick call so we could explain what we are trying
> to achieve and it will be easier to answer any additional questions you
may
> have.
>
> Thanks
>
> On Jan 3, 2018 11:48 PM, "Chris Scott" ***@***.***> wrote:
>
> > Feel free to post what you're doing (ie: your Javascript) in addition
to
> > logs from the plugin here. You can fetch logs from the plugin using the
> > #getLog method.
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
> https://github.com/transistorsoft/nativescript-
background-geolocation-lt/issues/97#issuecomment-355085836
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/AIYe257__
4tX4GlnleSqwMi9KaJP9KDEks5tG8SOgaJpZM4RK43S
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
>
>
> Reply to this email directly, view it on GitHub
> <https://github.com/transistorsoft/nativescript-
background-geolocation-lt/issues/97#issuecomment-355191514>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAA6l7EPqud_
u0GFsSKNDSBXA7zG1EpCks5tHEdugaJpZM4RK43S>
> .
>
--
Snet form Gmail Mobile
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe26cMUjJF5OqWDTIoP5cA6UoRQI6sks5tHEfGgaJpZM4RK43S>
.
|
Hey @christocracy , have given you access to our code repo, should have received an email. The configuration we use it as below: BackgroundGeolocation.on("location", this.onLocation.bind(this));
The same can be found in: |
And where are your logs? |
@christocracy Here is the log file: |
Hey @christocracy , any update on this? Would really appreciate if get any help from you on this. |
I see nothing unusual in the logs (which came from the simulator). |
Do you see anything further from us in order for you to help us further?
As we couldn't see anything unusual in logs and it works perfectly fine in
debug mode, that's what makes it difficult for us to investigate further.
We tried few different things to find out work around but at this stage we
are running out of ideas and any further help will be appreciated.
…On Jan 8, 2018 9:34 PM, "Chris Scott" ***@***.***> wrote:
I see nothing unusual in the logs (which came from the simulator).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe2zVotWHlKAsjgerQHIRT2MsfvDsnks5tIjyYgaJpZM4RK43S>
.
|
@christocracy please let us know if we can provide any more details. As mentioned earlier, the plugin works seamlessly in Debug mode, but in Release mode, it doesn't. We are totally stuck and have no idea how to make this work. Your help will be greatly appreciated. Thanks |
I suggest you test using the demo app |
Chris, we tried demo app first and it works fine in both debug as well as
in release mode.
On Jan 8, 2018 9:54 PM, "Chris Scott" <[email protected]> wrote:
I suggest you test using the demo app
<https://github.com/transistorsoft/nativescript-background-geolocation-lt#demo-app>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe238ewx2nsnaqah0EeIaOECIo7kaNks5tIkE4gaJpZM4RK43S>
.
|
Then I suggest you provide several days worth of logs from the device (not simulator). Fetch logs with
|
Sure Chris. We could run this in actual device with debug mode false and
log level 5 to collect logs.
Could you please let me know how I could extract logs from device using
getlog method - where I need to call this method to collect logs from
device?
On Jan 8, 2018 9:58 PM, "Chris Scott" <[email protected]> wrote:
Then I suggest you gather provide several days worth of logs from the
device (not simulator). Fetch logs with #getLog or #emailLog methods.
debug: false,
logLevel: 5
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe21aNqbDzungER-KAiaWTI3uj4vQrks5tIkI-gaJpZM4RK43S>
.
|
See |
Chris, here are the Device logs when the app was in Foreground and Background. |
We will continue to gather log from actual devices for one more day but
thought this should be good enough for you to check further...
*Chintan Thakkar* | Co-Founder| *SoluLab “We add heart to technology”*
www.solulab.com
LinkedIn - https://in.linkedin.com/in/chintan7
…On Tue, Jan 9, 2018 at 5:36 PM, Sanchit Sahu ***@***.***> wrote:
Chris, here are the Device logs when the app was in Foreground and
Background.
https://www.dropbox.com/s/zj2scsmc8ofi17n/Background.rtf?dl=0
https://www.dropbox.com/s/95ghnjaqyxv0fxp/Forground.rtf?dl=0
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe2-AxZr7R6w9O58G6VEQkcSuYOUyTks5tI1ZTgaJpZM4RK43S>
.
|
Why are you showing me logs with |
Here are the logs with debug:false https://www.dropbox.com/s/f78qeapgtinhskh/Background%20copy.rtf?dl=0 https://www.dropbox.com/s/snr2y9n50pgc3o6/Forground%20copy.rtf?dl=0 |
How can you possibly provide several days worth of logs in 1 hour? |
These logs are just similar to the ones shared previously, just with the debug set to false just so you can check if you find anything till we share the several days worth of logs |
The plugin is completely happy in that 2 min of logs. |
Chris, we have installed the app in our device and will gather logs during
next 2 to 3 days and will share the logs by Friday EOD. Hope that will give
you sufficient data to investigate further...
Thanks
*Chintan Thakkar* | Co-Founder| *SoluLab “We add heart to technology”*
www.solulab.com
LinkedIn - https://in.linkedin.com/in/chintan7
…On Tue, Jan 9, 2018 at 8:37 PM, Chris Scott ***@***.***> wrote:
The plugin is completely happy in that 2 min of logs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIYe23iJgpr28EancXjepxVY-AAG44z8ks5tI4CkgaJpZM4RK43S>
.
|
Your Environment
tns info
):nativescript │ 3.3.0 │ 3.4.0 │ Update available │
│ tns-core-modules │ 3.1.1 │ 3.4.0 │ Update available │
│ tns-android │ 3.2.0 │ 3.4.0 │ Update available │
│ tns-ios │ 3.3.0 │ 3.4.0 │ Update available │
BackgroundGeolocation.configure({
debug: false,
desiredAccuracy: 0,
distanceFilter:50,
stopOnTerminate: false,
stopOnStationary: false,
stopTimeout: 100,
stationaryRadius: 10,
activityRecognitionInterval: 10,
preventSuspend:true
}, (state) => {
if (!state.enabled) {
BackgroundGeolocation.start();
}
});
Expected Behavior
Should register location events when the app is killed and debug is set to false.
Actual Behavior
Everything works fine when the debug mode is set to true. But setting it to false doesn't do anything when the app is killed. We don't receive the location change updates.
Steps to Reproduce
Just try running with debug initially true and hen set to false
Context
All I am trying to do is get the updates when the user's location updates/changes. I am able to get the updates only when the debug is set to true. I tested out my whole app and once the requirement was fulfilled, I set the debug to false, because obviously, I don't want the notifications and sounds to be popping up on the live app. But once debug is set to false, the entire functionality stops working.
The text was updated successfully, but these errors were encountered: