i had created application using ionic and pouchdb.
我使用ionic和pouchdb创建了应用程序。
i am using couchdb on my local server.
我在我的本地服务器上使用couchdb。
My sample application is working fine in ios and android. But same application in blackberry10 giving error while start replication
我的示例应用程序在ios和android中运行良好。但是blackberry10中的相同应用程序在启动复制时出错
error as following
错误如下
{
"status": 500,
"name": "Error",
"message": "unknown",
"error": "true",
"reason": "database not open"
}
I had also created app to test pouchdb working in blackberry10 or not? But it working.
我还创建了应用程序来测试在blackberry10中工作的pouchdb与否?但它有效。
so i am getting error while replication in blackberry10 application.
所以我在blackberry10应用程序中复制时遇到错误。
and i am unable to figure out why it is only giving error in blackberry10 and what is exact problem.
我无法弄清楚为什么它只是在blackberry10中给出错误,究竟是什么问题。
2 个解决方案
#1
Thanks for response nlawson
谢谢回复nlawson
I solved it.
我解决了
I was using sqlite plugin to use websql adapter and provide size to database.
我使用sqlite插件来使用websql适配器并为数据库提供大小。
var localDB = new PouchDB(databaseName, {adapter: 'websql',size:10});
so sqlite plugin is working properly with ios and android.
所以sqlite插件与ios和android正常工作。
i just remove sqlite plugin and make
我只是删除sqlite插件和make
var localDB = new PouchDB(databaseName);
and it start working on blackberry10 device.
它开始在blackberry10设备上工作。
#2
We're working on BlackBerry support, but it seems like their implementation of WebSQL is not correct: https://github.com/pouchdb/pouchdb/pull/3737
我们正在开发BlackBerry支持,但似乎他们的WebSQL实现不正确:https://github.com/pouchdb/pouchdb/pull/3737
#1
Thanks for response nlawson
谢谢回复nlawson
I solved it.
我解决了
I was using sqlite plugin to use websql adapter and provide size to database.
我使用sqlite插件来使用websql适配器并为数据库提供大小。
var localDB = new PouchDB(databaseName, {adapter: 'websql',size:10});
so sqlite plugin is working properly with ios and android.
所以sqlite插件与ios和android正常工作。
i just remove sqlite plugin and make
我只是删除sqlite插件和make
var localDB = new PouchDB(databaseName);
and it start working on blackberry10 device.
它开始在blackberry10设备上工作。
#2
We're working on BlackBerry support, but it seems like their implementation of WebSQL is not correct: https://github.com/pouchdb/pouchdb/pull/3737
我们正在开发BlackBerry支持,但似乎他们的WebSQL实现不正确:https://github.com/pouchdb/pouchdb/pull/3737