Skip to content

COMLINE-AG/native-xhr-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Plugin is based on following workaround suggestion (which works): https://issues.apache.org/jira/browse/CB-12074?focusedCommentId=16180050&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16180050

This plugin resolves the WkWebView cookies after first startup problem. Look at: ionic-team/cordova-plugin-ionic-webview#22

Important

To make this workaround work, u need to make a native request to your backend and recieve cookies with that request. After that request you have to make sure u wait up to 3 seconds. (Usely until a User logged in 3 seconds already passed)

Usage:

cordova.plugins.nativexhr.executeXHR("URL", function () {
  // Do something after the request was successful...
}, function (error) {
  // Do something on Error...
});