Cordova Slack Digest

Tue, 15 Sep 2020 08:25:14 GMT

User count: 4122

Join the conversation at slack.cordova.io

Channel #general (19 messages)


Mon, 14 Sep 2020 09:54:22 GMT

@abul.asar22 says

Hello , everyone I am facing following error on circleCI when it is installing phonegap-plugin-push

"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Running command: pod install --verbose
Failed to install 'phonegap-plugin-push': Error: pod: Command failed with exit code 1```
Has anyone faced similar error before ?

Mon, 14 Sep 2020 10:05:39 GMT

@jordi289 says

Seems like it's an phonegap-plugin-push issue and not cordova

Mon, 14 Sep 2020 10:37:37 GMT

@jcesarmobile says

Considering the plugin is archived and not updated for a long time, the problem is probably cocoapods not finding the plugin dependency because it’s very old

Mon, 14 Sep 2020 10:37:59 GMT

@jcesarmobile says

Check https://github.com/havesource/cordova-plugin-push|https://github.com/havesource/cordova-plugin-push

Mon, 14 Sep 2020 14:03:52 GMT

@efficientmedia says

Have any one included a SwiftUI Watch App into. Cordova project?

Mon, 14 Sep 2020 15:57:19 GMT

@bishoysamy460 says

Hey everyone, I have a problem with remoorejr/cordova-plugin-media-with-compression on android.... I have set the SampleRate to 32000 but it is working on some phones while not working on others and go straight to the error callback with error code 1 .... did any one face this problem ??

Tue, 15 Sep 2020 04:23:29 GMT

@abul.asar22 says

Hello Everyone, yesterday i was able to upgrade my cordova-ios to version 6.1.1 and other libaries as well. But on loading the app, all styling of the app is vanished. I can see following error. Cannot load stylesheet file:///private/var/containers/Bundle/Application/13F6252C-5D08-4B42-9E08-4DE75DB8C436/S.%20AppName.app/www/assets/vendor.css. Failed integrity metadata check. My intention to do upgrade was to remove WebView . Earlier I used other approach to remove WebView. I used cordova-plugin-wkwebview-engine plugin to remove WebView but I got same error at that time as well. Can anyone guide to fix this error ?

Tue, 15 Sep 2020 04:25:14 GMT

@norman137 says

cordova-plugin-wkwebview-engine is not compatible with cordova-ios@6.x . The plugin code was essentially moved into the cordova-ios (among with many enhancements). You don't need a wkwebview plugin when using cordova-ios@6.x

Tue, 15 Sep 2020 04:26:02 GMT

@abul.asar22 says

I am not using that now. I tried it earlier and at that as well I got the same error.

Tue, 15 Sep 2020 04:33:56 GMT

@abul.asar22 says

I got one answer on googling. The accepted answer is saying: The problem appears to be with an cordova plugin: cordova-plugin-wkwebview-engine.Removing the plugin does the trick. App loads normally after rebuilding. But is not going to work if we are upgrading ios.

Tue, 15 Sep 2020 04:37:18 GMT

@norman137 says

If you‘re using cordova-ios@6 then you don’t need the cordova-plugin-wkwebview-engine plugin.

Tue, 15 Sep 2020 04:45:04 GMT

@abul.asar22 says

yup.. i tried that earlier,  I am not using that now. As you said cordova-plugin-wkwebview-engine is used internally with cordova-ios6 so may be that it is throwing this error.

Tue, 15 Sep 2020 05:02:22 GMT

@erisu says

cordova-plugin-wkwebview-engine , the plugin itself is not installed at all with Cordova iOS 6.x..

All of the plugin’s code was manually moved to the Cordova-iOS repo.

Since UIWebView was deprecated and no longer accepted by Apple, it was completely deleted from the Cordova-iOS repo. Because of that, we needed a webview enabled by default so that the app will still display. This is why WKWebView is integrated by default.

Tue, 15 Sep 2020 05:19:43 GMT

@abul.asar22 says

Any specific reason for the error I mentioned above ? ☝️

Tue, 15 Sep 2020 05:29:20 GMT

@erisu says

I am not sure if your app is trying to load any external resources, but could you try and add the follow to your config.xml

<preference name="hostname" value="localhost" />```
and see if that makes any difference?

Tue, 15 Sep 2020 06:00:31 GMT

@abul.asar22 says

Sure… i’ll try this one.

Tue, 15 Sep 2020 07:30:46 GMT

@abul.asar22 says

It worked. Thanks.

Tue, 15 Sep 2020 07:45:38 GMT

@abul.asar22 says

What is the reason for this error TypeError: undefined is not an object (evaluating 'window.plugins.actionsheet') . I am getting one similar error related for window.device.platform but it seems because of cordova-plugin-device which is 1.1.1 version. I am upgrading it. But I am not sure about window.plugins.actionsheet .

Tue, 15 Sep 2020 07:49:37 GMT

@erisu says

I dont know anything about the actionsheet plugin. You will need to contact the plugin developer for that one as Apache Cordova does not maintain that plugin.

Channel #cordova-ios (4 messages)


Mon, 14 Sep 2020 10:06:11 GMT

@lukas says

Hi everyone, we are using WK Webview and React and want to trigger another action when a user holds a button instead of pressing it. I try to listen for the events touchstart and touchend but they are only triggered after I release the button again. I want touchstart to immediatly fire when the button is being pressed. I also tried adding the CSS property touch-action: manipulation without success. Did someone of you implemented a long press on iOS?

Mon, 14 Sep 2020 10:13:28 GMT

@aquinn says

Hi all, does anyone have experience with cocoapods? When I install the plugin, it does not install the pods as well. https://github.com/AyogoHealth/cordova-plugin-update-notifier/issues/4

Mon, 14 Sep 2020 11:53:22 GMT

@aquinn says

Is this plugin still needed if we are using cordova-cli v 10? https://github.com/mircoc/cordova-plugin-settings-hook

Mon, 14 Sep 2020 13:12:42 GMT

@pratiksha.bhavsar0895 says

Hi team I am trying to incorporate markers on map on cordovaios6.1.1. As per documentation of a library have loaded its url with desired key,with div & other initialization code . After the url is requested 3 more url (hidden) are called/hit i.e from within the library it is directly hit but the url scheme turns out to be app://url1, app://url2 and app://url3 due to which error appears with 404 status. While in android the same code works as expected with https:// as scheme. Is this because of wkwebkit implementation ? How will I changes scheme of url that are not accessible directly?

Channel #cordova-android (1 messages)


Mon, 14 Sep 2020 18:34:59 GMT

@ucheozoemena says

Hi folks, I’m seeing a bug where images don’t have the correct orientation in a media picker plugin I’m using. Some are rotated 90 degrees and others are rotated 180, whereas some are upright. It looks like only images taken by the camera are affected. I found this thread which looks like the same issue but I haven’t been able to make the code work for my plugin: https://stackoverflow.com/questions/14066038/why-does-an-image-captured-using-camera-intent-gets-rotated-on-some-devices-on-a|https://stackoverflow.com/questions/14066038/why-does-an-image-captured-using-camera-intent-gets-rotated-on-some-devices-on-a. Has anyone encountered and solved something like this previously?

Channel #cordova-windows (1 messages)


Mon, 14 Sep 2020 11:03:33 GMT

@timotej.jakimovski says

Hi fellows,

I have a Cordova applicaiton on which i had created WinRT components that run some background task on systemEvent when the application gets updated. I have referenced the WinRT component in the Cordova project and managed to register and/or unregister the events through Javascript.

The problem i have is an error that is raised and displayed in Event Viewer that says: “The background task with entry point and name failed to activate with error code 0x80131040”.

So the event is found and registered but cannot be ACTIVATED ? Why ? Any Idea ?

Thanks

Channel #plugins (3 messages)


Mon, 14 Sep 2020 11:03:51 GMT

@timotej.jakimovski says

Hi fellows,

I have a Cordova applicaiton on which i had created WinRT components that run some background task on systemEvent when the application gets updated. I have referenced the WinRT component in the Cordova project and managed to register and/or unregister the events through Javascript.

The problem i have is an error that is raised and displayed in Event Viewer that says: “The background task with entry point and name failed to activate with error code 0x80131040”.

So the event is found and registered but cannot be ACTIVATED ? Why ? Any Idea ?

Thanks

Mon, 14 Sep 2020 22:56:05 GMT

@patrick662 says

I‘m going to add a QR scanner into my app. Any recommendations on the best plugin so I don’t waste a lot of time researching? 🙂

Mon, 14 Sep 2020 22:59:40 GMT

@dpogue says

On Android, you might be able to use the built-in BarcodeDetector API

Channel #cordova-browser (1 messages)


Mon, 14 Sep 2020 16:20:26 GMT

@efficientmedia says

@efficientmedia has left the channel