Skip to content

Cordova SQLIte Plugin Not Working in Child Windows #368

@rbahadur

Description

@rbahadur

Hello,

My application is working fine when I do not have any pops, but I have a requirement where I need to call a window (POP UP) in which data is loading in iframe, In that I need to fetch some details from data base, but when I am trying to connect to Data base, connection is working, but when I am trying below statement.

db.transaction( function(tx){

Control is not coming after this line >>
tx.executeSql(queryString,[],function(tx,results){

},function(tx,error){
console.log("Error while querying Quote from DB"+error.message);
});
}, errorCB, function(tx){
console.log("Successfully quried Parent Account list"+JSON.stringify(parentaccountlistData));
});

When I debug the code the controll is going to cordova js in the below method, and bridgeSecret value is coming -1.

function pollOnce(opt_fromOnlineEvent) {
if (bridgeSecret < 0) {
// This can happen when the NativeToJsMessageQueue resets the online state on page transitions.
// We know there's nothing to retrieve, so no need to poll.
return;
}
var msgs = nativeApiProvider.get().retrieveJsMessages(bridgeSecret, !!opt_fromOnlineEvent);
if (msgs) {
messagesFromNative.push(msgs);
// Process sync since we know we're already top-of-stack.
processMessages();
}
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions