Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – How to run the flutter application in the background even after the application removed from the ram

Posted on November 11, 2022 By

Solution 1 :

Use flutter_background_services plugin. You can start a foreground service which will keep running even if the app is terminated.
Here, you can set the interval as low as 1 second.

It is using STICKY service, which basically means, it will restart the service if terminated by the OS.

Problem :

I want to implement the feature (Example images were attached below) in the flutter application. I want that if I started a service, then it will not be killable till the service end. It will show a notification like this that the application service is still active.
I want a service like this, the application continuously uploads the location of the user to my server in the background continuously.
I tried the plugin work_manager. But this plugin runs the service every 15 minutes (15 minutes is the minimum time we can set).

Example of my requirements:

1. Here in my android task there is no application running.

enter image description here

2. But still, this application is running because the service was enabled.

enter image description here

Comments

Comment posted by Swayamshree Mohanty

another query is that, can we run multiple services?

READ  [FIXED] android - Getting a List> after a flatmap operation
Powered by Inline Related Posts
Android Tags:android, background-process, background-task, flutter

Post navigation

Previous Post: [FIXED] Unable to connect Firebase in Android Emulator for Flutter Project
Next Post: [FIXED] android – Highlight only one Card in Compose through selection

Related Posts

[FIXED] swipe – Is it possible to allow swyping (swiping) but disable typing in Android? Android
[FIXED] android – Create a Style for buttons Android
[FIXED] How we resolve Check self permission error Android Android
[FIXED] android – flutter app change status bar to match same appbar Android
[FIXED] How can I add more android compatibility to my react native bluetooth app? Android
[FIXED] Android disable Scrollview end animation Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme