How to get background location in flutter without third party lib

  Рет қаралды 3,093

Coding With Nobody

Coding With Nobody

Күн бұрын

Пікірлер: 25
@codingwithnobody
@codingwithnobody Жыл бұрын
In MainActivity.kt use FlutterFragmentActivity instead of FLutterActivity Also if your app crashes on Android U due to some security exception add following permission to Android Manifest
@kuttusan891
@kuttusan891 12 күн бұрын
Sir can we get live location on this on background
@codingwithnobody
@codingwithnobody 11 күн бұрын
yes for android, iOS is little more strict
@harunsimsek724
@harunsimsek724 6 ай бұрын
When the application is closed, location listening works, but when this location is updated, I want to run a service, I want to update the database, do you have a solution for this?
@codingwithnobody
@codingwithnobody 6 ай бұрын
You can use RoomDB for android & CoreData for iOS
@tarikulislam2729
@tarikulislam2729 7 ай бұрын
Will this work if the app is terminated or closed by the user?
@codingwithnobody
@codingwithnobody 7 ай бұрын
Yes as the foreground service is still running
@tarikulislamtuhin5544
@tarikulislamtuhin5544 7 ай бұрын
I got this error when I terminated/closed the app. Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: com.example.apprunbgrnd. Response ID: 21
@codingwithnobody
@codingwithnobody 7 ай бұрын
Hmm, are you still able to see the foreground service, because you should update the location in notification and maybe add a check
@_ritesh305
@_ritesh305 9 ай бұрын
i get that you don't want to share the code cause people will skip watching your video but at least show all the imports and code so that a beginner would not get any kind of error
@codingwithnobody
@codingwithnobody 9 ай бұрын
If you use android studio or Xcode it will automatically ask to import the relevant imports
@KhushiMishra-nl3vt
@KhushiMishra-nl3vt 10 ай бұрын
Is this will only work for iOS?
@codingwithnobody
@codingwithnobody 10 ай бұрын
Android as well
@KhushiMishra-nl3vt
@KhushiMishra-nl3vt 10 ай бұрын
Ohh one more doubt which will be better using the above method or background_locator_2 package will work?
@codingwithnobody
@codingwithnobody 10 ай бұрын
@@KhushiMishra-nl3vt I never used background_locator_2. You should use what works best for you
@darkknight8582
@darkknight8582 Ай бұрын
can you give me the source code
@codingwithnobody
@codingwithnobody Ай бұрын
Sorry I no longer have it
@shahilc-u6d
@shahilc-u6d 3 ай бұрын
Can you share this git repo ?
@codingwithnobody
@codingwithnobody 3 ай бұрын
Sorry I no longer have the code, you can copy it from video
@KhushiMishra-nl3vt
@KhushiMishra-nl3vt 10 ай бұрын
Hey can you share the source code?
@codingwithnobody
@codingwithnobody 10 ай бұрын
Sorry I did not push it to github
@jobjosekutty9281
@jobjosekutty9281 11 ай бұрын
can you share the source code
@codingwithnobody
@codingwithnobody 10 ай бұрын
Sorry I did not push the code to Github
[Sneak Peek] Geofencing sample app
8:30
Anuchit Chalothorn
Рет қаралды 1,1 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
What will 2025 bring to our industry? | ep89
15:49
College Recruiter niche job search site
Рет қаралды 6
How to Create Android Plugin to Compress Image in Godot Game Engine
20:02
My Favourite NAS Releases of 2024
14:27
NASCompares
Рет қаралды 13 М.
How to Create REST Apis with Mongodb, Mongoose & Nestjs
30:11
Coding With Nobody
Рет қаралды 11
Implement your own Promise | Frontend interview question
14:42
Daigen B. River
Рет қаралды 21
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН