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.

So guys, i’m a bit desperate here: i’m using it together with react-native-webrtc. The problem is i need to stop it when i swipe the app from the multitasking. On android <= 7 it stops. On higher androids it just keeps going forever. I tried forking the package and implementing the onTaskRemoved(). I tried onDestroy(). I tried declaring android:stopWithTask="true". What i achieved is service being “stopped”, notification removed, but the darn stream is still going. So no notification, no clue app is running or something, but the webrtc stream is still perfectly fine. This drives me crazy, any thoughts what i can do? Without react-native-foreground-service at all the whole thing is closing naturally when i kill the app obviously.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

3reactions
dev-apps-codecommented, Jan 16, 2022

problem still exists, anyone?

1reaction
AlexCernikcommented, Aug 17, 2022
@Override
protected void onDestroy() {
  super.onDestroy();
  Intent intent = new Intent(this.getApplicationContext(), VIForegroundService.class);
  intent.setAction("com.voximplant.foregroundservice.service_stop");
}

this worked for me.

more explanation please?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cyberbullying: What is it and how to stop it - UNICEF
If the bullying is happening on a social platform, consider blocking the bully and formally reporting their behaviour on the platform itself. Social...
Read more >
How Bullying Manifests at Work — and How to Stop It
Here, we'll discuss the different types of bullying, the myths that prevent leaders from addressing it, and how organizations can effectively ...
Read more >
How Can I Stop Cutting? (for Teens) - Nemours KidsHealth
Start by being aware of which situations are likely to trigger your urge to cut. Make a commitment that this time you will...
Read more >
Stop Vomiting and Nausea: Remedies, Tips, and More
Whether from motion sickness, illness, or a hangover, vomiting can often be treated at home. Learn tips to help you stop throwing up...
Read more >
How to Stop the Pain: James B. Richards - Amazon.com
How to Stop the Pain [James B. Richards] on Amazon.com. *FREE* shipping on qualifying offers. How to Stop the Pain.
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