storesafe/cordova-sqlcipher-adapter

Using ESRI-advanced geolocation plugin causes sqlcipher plugin to malfunction

id4coding opened this issue · 0 comments

Hi,
I've an Ionic 3 app which functioned perfectly with sqlcipher plugin. However, when I added the ESRI-advanced geolocation plugin and started using it, sqlcipher adapter stopped functioning. It doesn't throw an error in the browser console. But, Android Studio logcat shows the following stack trace:
`

E/SQLitePlugin: couldn't add to queue
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1194)
    at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:307)
    at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:307)
    at io.sqlc.SQLitePlugin.executeAndPossiblyThrow(SQLitePlugin.java:159)
    at io.sqlc.SQLitePlugin.execute(SQLitePlugin.java:89)
    at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:98)
    at org.apache.cordova.PluginManager.exec(PluginManager.java:132)
    at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59)
    at org.apache.cordova.engine.SystemExposedJsApi.exec(SystemExposedJsApi.java:41)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:323)
    at android.os.Looper.loop(Looper.java:135)
    at android.os.HandlerThread.run(HandlerThread.java:61)

`
An issue was opened in ESRI - advanced geolocation plugin's issues section with a similar bug. There, the developer concluded that the problem was not with advanced geolocation plugin. A link to the above issue is here: https://github.com/Esri/cordova-plugin-advanced-geolocation/issues/49

I really want to use both - sqlcipher adapter & advanced geolocation - plugins. Will you please fix this issue or let me know how what I can do about it?

Thanks for your time!