Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite not working #76

Open
AppDeveloperDotCom opened this issue Aug 1, 2022 · 1 comment
Open

sqlite not working #76

AppDeveloperDotCom opened this issue Aug 1, 2022 · 1 comment

Comments

@AppDeveloperDotCom
Copy link

Hi,
Thanks alot to you for building such a plugin.
Currently I'm Using it along with Ionic 6 framework for hybrid application built on cordova and angular
My problem is that the moment I call for start method ....I do get the co-ordinates but other plugins stop working like for example Sqlite plugin of cordova.
Like I 'm using your plugin and sqlite plugin on device ready, but after start method my sqlite plugin stops responding ...like no error and no success response
If I'm commenting start method call everything is working fine.
I have tried calling stop method right after receiving co-ordinates and calling kill method crashes the whole application it self.
Ihave tried all possible alternative like try-catch,returning promise using window approach to call sqliteplugin etc..

@andygup
Copy link
Member

andygup commented Aug 1, 2022

Hi @AppDeveloperDotCom just a heads-up, I last updated this repo about 4 years ago. With regards to that error, if I remember correctly there was a Cordova threadpool design issue in Sqlite that they had no plans on fixing. I don't remember all the specifics but Sqlite used a very primitive threading implementation at the time. In order to work around that bug, I would have had to completely break the threading model in this plugin, and that was something I wasn't willing to do.

References: https://github.com/Esri/cordova-plugin-advanced-geolocation/blob/master/src/com/esri/cordova/geolocation/AdvancedGeolocation.java#L252 and https://cordova.apache.org/docs/en/11.x/guide/platforms/android/plugin.html#threading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants