Cordova Slack Digest

Fri, 21 Aug 2020 08:22:07 GMT

User count: 4073

Join the conversation at slack.cordova.io

Channel #general (8 messages)


Thu, 20 Aug 2020 16:17:25 GMT

@g.asci says

Do we have a cordova plugin that supports this new feature: Google Play In-App Review API https://developer.android.com/guide/playcore/in-app-review

Thu, 20 Aug 2020 16:40:30 GMT

@luca says

Hey all, after upgrading to cordova-ios@6 with WkWebView, some of my app's functionality that relies on web workers seems to be throwing errors. Anything I should know that may fix these issues?

Thu, 20 Aug 2020 16:43:07 GMT

@norman137 says

what kind of errors are they throwing?

Thu, 20 Aug 2020 16:46:45 GMT

@luca says

Unfortunately, I‘m just getting “Script error.” So I’m not sure.

Thu, 20 Aug 2020 16:49:20 GMT

@luca says

This Editor.jsx line is just an internal error catcher my app is throwing, but it seems that it also hasn't received any details.

Thu, 20 Aug 2020 16:49:25 GMT

@norman137 says

Those are CORS errors. CORS is intentionally very vague. If you're attempting to load an external resource, the server must implement the CORS protocol. If the resources are local, then you may need to use schemes, which is talked about in this blog post: https://cordova.apache.org/howto/2020/07/18/uiwebview-warning.html

Thu, 20 Aug 2020 17:09:02 GMT

@luca says

Ah, all local. thanks Norman will take a look

Fri, 21 Aug 2020 07:20:23 GMT

@abul.asar22 says

Is there any step to install pods in cordova ? I am using cordova-facebook4 plugin. But on CircleCI iam getting this error.

#import <FBSDKCoreKit/FBSDKCoreKit.h>```
possibly this library is not getting installed.
Can anyone guide me in this ?

Channel #cordova-ios (13 messages)


Thu, 20 Aug 2020 10:42:58 GMT

@pratiksha.bhavsar0895 says

Due to up gradation of app in 6.1.0 are we going to face issue for older versions of ios ?? Do we have any limitation added concerning ios version after addition of wkwebview via cordova-ios@6.1.0 platform ?

Thu, 20 Aug 2020 13:31:47 GMT

@norman137 says

as of cordova-ios@6, the minimum supported ios version is 11.

Thu, 20 Aug 2020 13:32:14 GMT

@norman137 says

I think because the scheme feature.

Thu, 20 Aug 2020 13:39:35 GMT

@pratiksha.bhavsar0895 says

So app wont work on ios with version less than 11 ?

Thu, 20 Aug 2020 13:56:04 GMT

@norman137 says

Correct. Which has an insignificant market share: https://david-smith.org/iosversionstats/

Thu, 20 Aug 2020 13:56:23 GMT

@pratiksha.bhavsar0895 says

Okay Thanks Norman!!

Thu, 20 Aug 2020 16:08:01 GMT

@g.asci says

Hi, everybody. How do we create app clips for a cordova-ios app?

Thu, 20 Aug 2020 16:51:55 GMT

@daviesd says

Just updated to cordova-ios 6.1.0 and cordova cli 10.0.0. When I try to run on my device I get the following error. It appears it finds my device, but then switches to the simulator and fails. So possibly 2 issues. Has anyone seen this?

Running command: ios-deploy -c -t 1 [....] Waiting up to 1 seconds for iOS device to be connected [....] Found 00008020-000A0DE80E78003A (N841AP, iPhone XR, iphoneos, arm64e) a.k.a. ‘iPhone’ connected through USB. Running command: unzip -o -qq /Users/daviesd/workspace/mobile/digby/src-cordova/platforms/ios/build/device/Digby.ipa Deploying to simulator No target specified for emulator. Deploying to “iPhone-XR, 12.0” simulator. Running command: /Users/daviesd/workspace/mobile/digby/src-cordova/node_modules/ios-sim/bin/ios-sim launch /Users/daviesd/workspace/mobile/digby/src-cordova/platforms/ios/build/emulator/Digby.app --devicetypeid com.apple.CoreSimulator.SimDeviceType.iPhone-XR, 12.0 --log /Users/daviesd/workspace/mobile/digby/src-cordova/platforms/ios/cordova/console.log --exit Error: Unhandled error. (‘[ios-sim] /Users/daviesd/workspace/mobile/digby/src-cordova/platforms/ios/build/emulator/Digby.app/Info.plist file not found.\n’)

Thu, 20 Aug 2020 18:43:51 GMT

@daviesd says

looks like this might be a related issue https://github.com/apache/cordova-ios/issues/912

Thu, 20 Aug 2020 19:24:04 GMT

@daviesd says

Seems like once this is merged it will fix the issue https://github.com/apache/cordova-ios/pull/936. I tested locally and it does. Bleh!

Thu, 20 Aug 2020 19:25:30 GMT

@dpogue says

oh, that's probably worth doing a patch release for... releases are so painful though 😕

Thu, 20 Aug 2020 19:26:29 GMT

@daviesd says

Ya. I just created a local hook to patch it for me. 🙂

Thu, 20 Aug 2020 19:26:50 GMT

@dpogue says

Thanks for pointing it out though, I'll add it to my to-do list for getting a release together next week

Channel #cordova-android (18 messages)


Thu, 20 Aug 2020 15:01:58 GMT

@daviesd says

Today is upgrade all my cordova versions (cli 9.0.0 -> 10.0.0, android 8.1.0 -> 9.0.0, ios 5.1.0 -> 6.1.0 Right off the bat a problem with Android Unable to load Platform API from /Users/daviesd/workspace/mobile/digby/src-cordova/platforms/android/cordova/Api.js: Cannot find module ‘properties-parser’ Hadn't seen this before. Ideas?

Thu, 20 Aug 2020 15:06:03 GMT

@erisu says

Maybe try this?

  • Delete the package-lock.json
  • Delete the node_modules dir
  • npm i to refetch the node_modules.
  • cordova prepare to make sure platforms and plugins are added where they need to be.

Thu, 20 Aug 2020 15:06:26 GMT

@daviesd says

ya, my build actually does all those steps. lol.

Thu, 20 Aug 2020 15:06:31 GMT

@erisu says

😄

Thu, 20 Aug 2020 15:07:52 GMT

@erisu says

it also deletes platforms and plugins dir before cordova prepare? that was one part i left out cause I didnt think it was necessary but normall for a full clean I do that too.

Thu, 20 Aug 2020 15:08:42 GMT

@daviesd says

yep. my build is totally destructive. however, not sure the package-lock.json is removed. let me try that

Thu, 20 Aug 2020 15:31:55 GMT

@daviesd says

ok. that worked. but then i get to a point where my build just hangs. it's one of my build hooks (it completes if I comment them all out). so looking into that. thanks

Thu, 20 Aug 2020 15:40:33 GMT

@daviesd says

(ah, I had a hook that was waiting for a file to exist that doesn't anymore). ok, wow. build was faster. i got through ios and android both. now to test. wondering if i need to enable android-x support or just leave that off for now.

Thu, 20 Aug 2020 15:43:37 GMT

@norman137 says

if you have plugins that depends on the old support libraries, then you'd want to leave androidx off.

Thu, 20 Aug 2020 15:44:38 GMT

@norman137 says

or, you'll need the androidx adapter plugin to do in-place upgrade of those plugins that still use the deprecated libraries, but mileage may vary I think.

Thu, 20 Aug 2020 16:14:17 GMT

@g.asci says

Do we have a plugin that supports this new feature: Google Play In-App Review API https://developer.android.com/guide/playcore/in-app-review

Thu, 20 Aug 2020 16:18:44 GMT

@norman137 says

There may be a plugin availabe, you can try searching on http://npmjs.org|npmjs.org. Apache itself does not have a plugin for that.

Thu, 20 Aug 2020 16:30:34 GMT

@daviesd says

@norman137 hey Norman, I remember you were on the thread about WKWebView focus. https://github.com/apache/cordova-plugin-wkwebview-engine/pull/122 Do you know if this made it into the integrated WKWebview? One of my hooks was to patch this file, but not sure I need to anymore.

Thu, 20 Aug 2020 16:31:29 GMT

@norman137 says

Not sure

Thu, 20 Aug 2020 16:31:50 GMT

@norman137 says

When it comes to actual development for ios, I‘m kind of out of the loop, since I don’t actually own my own mac hardware.

Thu, 20 Aug 2020 16:31:56 GMT

@dpogue says

That would have to live as a separate plugin, it uses private APIs (which are technically forbidden by Apple) so we won't risk merging it into any Apache stuff

Thu, 20 Aug 2020 16:32:37 GMT

@daviesd says

ugh, ok... wonder if anyone made a plugin yet... the files look different enough that I'm gonna have to figure out how to patch it

Thu, 20 Aug 2020 22:01:30 GMT

@jcesarmobile says

The ionic webview plugin has that code, you can still use webview plugins on cordova-ios 6

Channel #plugins (1 messages)


Thu, 20 Aug 2020 16:17:19 GMT

@g.asci says

Do we have a cordova plugin that supports this new feature: Google Play In-App Review API https://developer.android.com/guide/playcore/in-app-review