2016-04-24 65 views
1

我有疑问。当混合应用程序处于后台或关闭状态时,是否可以保持更改提要仍然存在?混合应用程序暂停时,Pouchdb更改提要

var changes = db.changes({ 
    since: 'now', 
    live: true, 
    include_docs: true, 
    timeout: false 

    // attachments: true 
    }).on('change', function (change) { 

    onChange(change); 

    // handle change 
    }).on('complete', function (info) { 
    // changes() was canceled 
    }).on('error', function (err) { 
    console.log(JSON.stringify(err)) 
    }); 

回答