OSCache was not initialized because Cordova was not loaded

OSCache was not initialized because Cordova was not loaded

  

Hi,

I'm trying to install the plugin Cordova WKWebView Engine (https://github.com/apache/cordova-plugin-wkwebview-engine) but the application in iOS gives an error: 

"OSCache was not initialized because Cordova was not loaded.
Running on native but cordova wasn't loaded"


I just set the plugin in Extensibility Configurations property:

SyntaxEditor Code Snippet

{
    "plugin": 
    {
        "url": "https://github.com/apache/cordova-plugin-wkwebview-engine.git"
    }
}


OutSystems uses WKWebView component or the default UIWebView component?

Someone can help me?


Thanks,

Pedro

Hello Pedro,

Are you using P9 or P10?

Are you creating a P10 native app for ios? Cordova will be available automatically.

You don't need to install it.

I recommend the online course on Mobile development in OutSystems.

Cheers

Eduardo Jauch

Hi,

I am using the P10 and I only want to add a new plugin to my app.

Pedro

Hi,

Yes, is working on Android.

Yes, we have the server SSL enabled.

Pedro

Hi Pedro,

Ok.
I have being researching (I don't have an iPhone...), and it seems that this plugin have some requirements, to be used in iOS, that maybe are not being met.

First, it only works in a system with iOS 9.0 SDK. Second, it requires cordova iOS > 4.0.0

I'm not sure which version of cordova iOS is being used when preparing the iOS package. (I couldn't find the information).

Could be one of those two problems, maybe?

Cheers,
Eduardo Jauch

Just to see if it is a problem with the "cordova" or with the plugin, if you use a different plugin, like the contacts or any other, you can use it successfully or it gives the same error in iOS?

Cheers,
Eduardo Jauch

Hi Eduardo,

Thanks for the help.

I installed the contacts plugin and the camera plugin and it works, not appear the error.

I'm using iOS 10 but I already used this plugin in other Cordova application (without Outsystems Now) and it worked.

Is possible to confirm the cordova version that Outsystmes use?

Thanks,

Pedro

Hi,

I would say that the version of cordova OutSystems use would not be the problem.

You mentioned the OutSystems NOW.
Are you testing using it? In iOS? Because it is not possible to use it with other plugins beside the ones he already is prepared to use.

If you are testing with OutSystems Now, generate an apk and install in the iOS to test.

If it is not this, maybe there is some missing configuration for iOS for this plugin...

But if I'm not mistaken, someone already complain of "false positive" during the checking of the presence of the Cordova.

Cheers,
Eduardo Jauch

Hi, I'm not using the OutSystems Now.

Hello Pedro,

I've being looking into other plugins and it seems that OutSystems uses UIWebView, at least in iOS, like this component: https://www.outsystems.com/forge/Component_Details.aspx?ProjectId=1826

Cheers, 

Eduardo Jauch

Hi Pedro,

If the information here is correct, than this plugin will not work in iOS. (not to mention that I think the cordova used has the UIWebView what also create a problem...)

Cheers,
Eduardo Jauch

Hi Eduardo,

Thank you for your help, I have a issue uploading videos on iOS (https://www.outsystems.com/forums/discussion/29039/upload-videos-on-ios/) with mobile app on v10, in another project (cordova without OS) I was able to resolve the issue with this plugin.

Hope someone helps in the other post.

Thanks,

Pedro