Git Product home page Git Product logo

Comments (15)

christocracy avatar christocracy commented on September 28, 2024

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.

christocracy avatar christocracy commented on September 28, 2024

Also, multiline syntax highlighting requires 3 backticks, not one

from flutter_background_geolocation_firebase.

christocracy avatar christocracy commented on September 28, 2024

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.

HardikkMadaan avatar HardikkMadaan commented on September 28, 2024

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.

christocracy avatar christocracy commented on September 28, 2024

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.

HardikkMadaan avatar HardikkMadaan commented on September 28, 2024

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.

HardikkMadaan avatar HardikkMadaan commented on September 28, 2024

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.

locskot avatar locskot commented on September 28, 2024

‼️ Uncaught Exception: Unable to find explicit activity class {iway.io.driver/com.transistorsoft.locationmanager.activity.TSLocationManagerActivity}; have you declared this activity in your AndroidManifest.xml?

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.

christocracy avatar christocracy commented on September 28, 2024

$ flutter doctor

Show the following files;

  • android/build.gradle
  • android/app/build.gradle

from flutter_background_geolocation_firebase.

locskot avatar locskot commented on September 28, 2024

https://prnt.sc/pvuq1u
https://gist.github.com/locskot/84fed303d98c85375b5020f17835aaa3
https://gist.github.com/locskot/807d1dd35f5dbb4779b54a92a348648e

from flutter_background_geolocation_firebase.

christocracy avatar christocracy commented on September 28, 2024

And the other app/build.gradle?
flutter doctor?

from flutter_background_geolocation_firebase.

locskot avatar locskot commented on September 28, 2024

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.

christocracy avatar christocracy commented on September 28, 2024

I suggest you open your /android app in Android Studio and look for warnings.

from flutter_background_geolocation_firebase.

locskot avatar locskot commented on September 28, 2024

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.

christocracy avatar christocracy commented on September 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.