Pouchdb使用cordova-plugin-wkwebview-engine插件?

时间:2017-08-18 05:26:35

标签: ios cordova ionic2 wkwebview pouchdb

我在我的离子v2应用程序中安装了cordova-plugin-wkwebview-engine插件。并且还安装了pouchdb插件。它工作正常。我只安装了pouchdb,没有安装sqlite插件没有设置任何适配器。

我已在ios 10.2中测试过 - ipad

但ios 9它没有用。只是显示白屏。

这是我的pouchdb代码

    this._db = new PouchDB('test');
    this.remote = 'http://192.168.53.150:5984/test';

    let options = {
        live: true,
        retry: true
    };

    this._db.sync(this.remote, options);
  

离子信息

cli包:(/ usr / local / lib / node_modules)

@ionic/cli-utils  : 1.9.1
ionic (Ionic CLI) : 3.9.1

全局包:

Cordova CLI : 7.0.1

本地包:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : ios 4.4.0
Ionic Framework    : ionic-angular 3.6.0

系统:

ios-deploy : 1.9.1
Node       : v6.11.0
npm        : 4.5.0
OS         : macOS Sierra
Xcode      : Xcode 8.3.2 Build version 8E2002

PackageJson:

{
    "name": "listtest",
    "version": "0.0.1",
    "author": "Ionic Framework",
    "homepage": "http://ionicframework.com/",
    "private": true,
    "scripts": {
        "clean": "ionic-app-scripts clean",
        "build": "ionic-app-scripts build",
        "lint": "ionic-app-scripts lint",
        "ionic:build": "ionic-app-scripts build",
        "ionic:serve": "ionic-app-scripts serve"
    },
    "dependencies": {
        "@angular/common": "4.1.3",
        "@angular/compiler": "4.1.3",
        "@angular/compiler-cli": "4.1.3",
        "@angular/core": "4.1.3",
        "@angular/forms": "4.1.3",
        "@angular/http": "4.1.3",
        "@angular/platform-browser": "4.1.3",
        "@angular/platform-browser-dynamic": "4.1.3",
        "@ionic-native/core": "3.12.1",
        "@ionic-native/splash-screen": "3.12.1",
        "@ionic-native/status-bar": "3.12.1",
        "@ionic/storage": "2.0.1",
        "@types/lodash": "^4.14.50",
        "cordova-ios": "^4.4.0",
        "cordova-plugin-console": "^1.0.5",
        "cordova-plugin-device": "^1.1.4",
        "cordova-plugin-splashscreen": "^4.0.3",
        "cordova-plugin-statusbar": "^2.2.2",
        "cordova-plugin-whitelist": "^1.3.1",
        "ionic-angular": "3.6.0",
        "ionic-plugin-keyboard": "^2.2.1",
        "ionicons": "3.0.0",
        "pouchdb": "^6.3.4",
        "pouchdb-find": "^6.3.4",
        "rxjs": "5.4.0",
        "sw-toolbox": "3.6.0",
        "zone.js": "0.8.12"
    },
    "devDependencies": {
        "@ionic/app-scripts": "^2.1.3",
        "typescript": "2.3.4"
    },
    "description": "An Ionic project",
    "cordova": {
        "plugins": {
            "cordova-plugin-console": {},
            "cordova-plugin-device": {},
            "cordova-plugin-splashscreen": {},
            "cordova-plugin-statusbar": {},
            "cordova-plugin-whitelist": {},
            "ionic-plugin-keyboard": {}
        },
        "platforms": [
            "ios"
        ]
    }
}

0 个答案:

没有答案