Comments (15)
Never write "Plugin version: Latest". It's meaningless. Edit your issue and provide the exact version you have installed in your pubspec.yaml
.
from flutter_background_geolocation_firebase.
Also, multiline syntax highlighting requires 3 backticks, not one
from flutter_background_geolocation_firebase.
Also, you're posting to the wrong repo. This is the flutter_background_geolocation_firebase
repo. Your issue is with flutter_background_geolocation
.
Can you reproduce this issue with the flutter_background_geolocation/example
app?
Clone the repo and open the /example
folder as a Flutter app. Run it.
https://github.com/transistorsoft/flutter_background_geolocation
from flutter_background_geolocation_firebase.
earlier i was trying to implement geolocation plugin itslef but no success . So i shifted to this and copied the exact same code from the example folder of this repo. I have updated the plugin version also.
from flutter_background_geolocation_firebase.
You are trying to do too many things at once and I suspect you're new to flutter as well.
Stop what you're doing, boot the /example
app linked above.
from flutter_background_geolocation_firebase.
You are trying to do too many things at once and I suspect you're new to flutter as well.
Stop what you're doing, boot the
/example
app linked above.
Well, as you said i just cloned and run the example app and it worked . Its amazing but instead of sending this data to your website, how do i send it to my firebase ?
from flutter_background_geolocation_firebase.
You are trying to do too many things at once and I suspect you're new to flutter as well.
Stop what you're doing, boot the/example
app linked above.Well, as you said i just cloned and run the example app and it worked . Its amazing but instead of sending this data to your website, how do i send it to my firebase ?
I tried to implement it in my code. But same thing . The app crashes when the slider is turned on.
Giving this:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.whatsupfirebase/com.transistorsoft.locationmanager.activity.TSLocationManagerActivity}; have you declared this activity in your AndroidManifest.xml?
from flutter_background_geolocation_firebase.
Same exception! Installed plugin according to manual
So, I started a new flutter project and copied all settings from the example app. It's working with a new project. It's okay, but I faced this error in the application file:
"Application.java:40: error: incompatible types: PluginRegistry cannot be converted to FlutterEngine GeneratedPluginRegistrant.registerWith(registry);"
So I left overridden method empty https://prnt.sc/pvqvqf
from flutter_background_geolocation_firebase.
$ flutter doctor
Show the following files;
- android/build.gradle
- android/app/build.gradle
from flutter_background_geolocation_firebase.
https://prnt.sc/pvuq1u
https://gist.github.com/locskot/84fed303d98c85375b5020f17835aaa3
https://gist.github.com/locskot/807d1dd35f5dbb4779b54a92a348648e
from flutter_background_geolocation_firebase.
And the other app/build.gradle?
flutter doctor?
from flutter_background_geolocation_firebase.
Flutter doctor has't found any issues.
https://gist.github.com/locskot/402a7bf7d637d7703e6053fcdbd7e68b
https://gist.github.com/locskot/ee9cdf9d3f65bbd93ac40c9e242f205b
https://gist.github.com/locskot/d3c2e2fddbd00644799593f1adaa5d00
https://gist.github.com/locskot/89c50ebd931d15bdd472eab01c7be81a
https://gist.github.com/locskot/df130c9c3882e729f2e7500594854347
https://gist.github.com/locskot/b02d9a81fa709ea0e43a879dee380e64
https://gist.github.com/locskot/c7579f8bf0b269b0a9b5dca64c8217af
https://gist.github.com/locskot/facacf86743dd28f8b775545394a2009
https://gist.github.com/locskot/a1064a9a99bd817d75079d76e37d6ce2
from flutter_background_geolocation_firebase.
I suggest you open your /android
app in Android Studio and look for warnings.
from flutter_background_geolocation_firebase.
The error "Application.java:40: error: incompatible types: PluginRegistry cannot be converted to FlutterEngine GeneratedPluginRegistrant.registerWith(registry);" was because flutter channel master.
I switched to channel stable and the error disappeared.
thank you!
from flutter_background_geolocation_firebase.
It seems flutter has made a small change in their plugin registry. Probably requires just one line change.
from flutter_background_geolocation_firebase.
Related Issues (20)
- AndroidX incompatibilities HOT 5
- Hability to start and stop the plugin. HOT 4
- [BUG] HOT 6
- How can I add extra data to the default Location Data Schema HOT 3
- Error adding document.
- What's the expected behaviour of flt_background_geolocation Config.locationTemplate HOT 1
- addGeofences method not working HOT 1
- Incompatibilities with latest flutter and latest flutterfire plugins [BUG] HOT 5
- How to customize the data sent to Firebase? HOT 4
- How about using a transformer to tranform the location Snapshots before uploading to fireStore? HOT 10
- Add support for sound null safety HOT 3
- The plugin `background_geolocation_firebase` uses a deprecated version of the Android embedding. HOT 9
- iOS Setup instructions in Swift HOT 2
- Changing and using Firebase Project from Dart HOT 6
- Could not find com.transistorsoft:tsfirebaseproxy HOT 6
- IOS build using background-geolocation-firebase causing Shader error HOT 5
- [BUG] Firestore is conflicting with `cloud_firestore` after reboot HOT 6
- App Crashed HOT 8
- [BUG] background_geolocation_firebase any which doesn't exist HOT 2
- Throttle the Frequency of Location Updates to Firebase HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_background_geolocation_firebase.