question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a way to stop the service - like stop()

See original GitHub issue

I want to stop the statistic sending as soon as the user opts out of this.

The Java SDK has a dedicated stop() method to shut down the engine.

The Android SDK has no such option. I tried calling onStop() which seems to signal something, but does not stop sending messages.

I also tried calling Countly.sharedInstance().consent().removeConsentAll() after I configured config.setRequiresConsent(true), but this is not effective until the whole app is restarted.

So I currently see no way to stop the sending of anaytics once Countly.sharedInstance().init(config) is called.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iartemcommented, Mar 21, 2022

Please refer to this method

0reactions
AshStefanOltmanncommented, Mar 23, 2022

@ArtursKadikis Thanks. It works now. Resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop-Service (Microsoft.PowerShell.Management)
This command stops the Telnet service on the local computer. The command uses Get-Service to get an object that represents the Telnet service....
Read more >
How to start and stop services manually on Windows 10
Type the following command to disable a service and press Enter: sc config "SERVICE-NAME" start=disabled. In the command, replace "SERVICE-NAME" ...
Read more >
How can I stop a service from the command line? - ITPro Today
Learn how to stop a service from the command line. ... (you can add > \[filename\] to the end to make it output...
Read more >
How to Start/Stop Windows Service Remotely on Several PCs
Method 1: Using Command SC​​ It's a built-in command line since Windows XP. It interacts with local and remote services quite easily like...
Read more >
Kill a Windows Service That Stucks on Stopping or Starting
The easiest way to stop a stuck service is to use the built-in taskkill command-line tool. First of all, you need to find...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found