Cordova Slack Digest

Tue, 24 Nov 2020 08:26:59 GMT

User count: 4241

Join the conversation at slack.cordova.io

Channel #general (14 messages)


Mon, 23 Nov 2020 10:43:33 GMT

@abul.asar22 says

hello everyone my iOS build is failing with this error

In file included from <module-includes>:1:
/Users/distiller/code/cordova/platforms/ios/Pods/Target Support Files/nanopb/nanopb-umbrella.h:13:9: error: double-quoted include "pb.h" in framework header, expected angle-bracketed instead [-Werror,-Wquoted-include-in-framework-header]
#import "pb.h"```

Mon, 23 Nov 2020 14:54:19 GMT

@jrondon says

ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 SDK. As of June 30, 2020, all apps for iPhone or iPad must be built with the iOS 13 SDK or later, included with Xcode 11 or later."

Mon, 23 Nov 2020 14:54:52 GMT

@jrondon says

hi i have this problem ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 SDK. As of June 30, 2020, all apps for iPhone or iPad must be built with the iOS 13 SDK or later, included with Xcode 11 or later."

Mon, 23 Nov 2020 14:56:41 GMT

@jrondon says

i built my app on windows but i am uploading it to apple store with transporter

Mon, 23 Nov 2020 22:23:26 GMT

@brianra says

Quick question about the docs. I see the current docs have 9.x marked as the Latest. Is this 9.x referring to the CLI or the docs themselves? It seems like there is more accurate documentation under dev, which should be the default in some cases? For example, the SplashScreen docs has a critical pivot in the current latest versions, but that's not in the 9.x docs.

Mon, 23 Nov 2020 22:26:08 GMT

@norman137 says

it‘s referencing CLI 9. CLI 10 docs hasn’t been released yet, so they only appear under dev.

Mon, 23 Nov 2020 22:26:57 GMT

@norman137 says

At this point, I think you're better off viewing the dev version of the docs until CLI 10 docs is actually published.

Mon, 23 Nov 2020 22:27:59 GMT

@brianra says

Thanks @norman137. To be clear, CLI 10 is released (and is the current version), but the docs for CLI 10 are not released yet?

Mon, 23 Nov 2020 22:28:09 GMT

@norman137 says

Correct

Mon, 23 Nov 2020 22:28:52 GMT

@norman137 says

I'm not sure if there is anything blocking the documentation release or not...

Mon, 23 Nov 2020 22:41:03 GMT

@brianra says

OK - thanks again!

Mon, 23 Nov 2020 22:45:35 GMT

@mathewp.94 says

So is Cordova just a loose group of OSS contributors? Or is it an actual organisation?

Mon, 23 Nov 2020 22:49:25 GMT

@norman137 says

It's part of the <https://www.apache.org/|Apache Software Foundation>... so there is an organisation, but still heavily volunteer based.

Tue, 24 Nov 2020 06:07:11 GMT

@abul.asar22 says

Hello everyone, my cordova app is crashing at start of app load on iOS 13.5 and iOS 13.6.1. I am having cordova-ios:6.1.1 . Does anyone have idea about it ?

Channel #cordova-ios (6 messages)


Mon, 23 Nov 2020 12:55:52 GMT

@darren.op says

We have an open source mobile app that‘s been working great on Android and iOS and still works great on Android but its developed a frustrating bug in iOS where when the app’s first installed and opened it hangs on the first page. If you close the app and open it again it works fine from then on. No codes changed and it‘s fine on Android and I can’t see anything obvious why it‘s now hanging. A couple of dev’s have looked at it and drawn a blank. Does anyone want to take a look at the project on GitHub and spot what I'm missing?

Mon, 23 Nov 2020 13:29:31 GMT

@darren.op says

The only error I could see was with a plugin localForage that was referenced but not used and removing that didn't seem to fix it.

Mon, 23 Nov 2020 14:59:10 GMT

@jrondon says

hi i have this problem ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 SDK. As of June 30, 2020, all apps for iPhone or iPad must be built with the iOS 13 SDK or later, included with Xcode 11 or later."

Mon, 23 Nov 2020 15:38:46 GMT

@norman137 says

As the error states, you need to use XCode 11.

Mon, 23 Nov 2020 15:46:45 GMT

@norman137 says

https://developer.apple.com/xcode/

The latest is XCode 12, which should also work.

Mon, 23 Nov 2020 18:51:08 GMT

@dpogue says

This is some (long awaited) good news: > Speaking of Safari in latest iOS 14.3 beta and local capture, navigator.mediaDevices.getUserMedia can now be exposed to WKWebView applications. navigator.mediaDevices.getUserMedia is automatically exposed if the embedding application is able to natively capture either audio or video. Please refer to Apple documentation to meet these requirements. Access to camera and microphone is gated by a user prompt similar to Safari and SafariViewController prompts. We hope to extend WKWebView APIs to allow applications to further control their camera and microphone management in future releases.

Channel #cordova-android (19 messages)


Mon, 23 Nov 2020 11:07:11 GMT

@chadwick.blackford says

Hallo guys!

Early it was possible to take foto or choose from a library:

Mon, 23 Nov 2020 11:07:28 GMT

@chadwick.blackford says

now I see only this dialog:

Mon, 23 Nov 2020 11:07:47 GMT

@chadwick.blackford says

if I click on input type=file

Mon, 23 Nov 2020 11:08:02 GMT

@chadwick.blackford says

how can I take pictures again ?

Mon, 23 Nov 2020 11:09:25 GMT

@chadwick.blackford says

I try to use this module - https://github.com/danialfarid/ng-file-upload but it doesn’t work too

I try to do &lt;input type="file" accept="image/*;capture=camera"&gt; … Same problem… only file choosing dialog…

Mon, 23 Nov 2020 13:04:45 GMT

@chadwick.blackford says

@niklasmerz I can’t find your commit(https://github.com/NiklasMerz/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c) anymore… do you know any workaround for this problem?

Mon, 23 Nov 2020 13:06:05 GMT

@niklasmerz says

You can view if you change the URL https://github.com/apache/cordova-android/commit/532e10b0463e35ac577663b85b572a659540105c

Mon, 23 Nov 2020 13:06:21 GMT

@niklasmerz says

I have no idea what this is about. 3 years ago. Where did you find it?

Mon, 23 Nov 2020 13:07:23 GMT

@chadwick.blackford says

@niklasmerz no one can open camera ….

Mon, 23 Nov 2020 13:08:42 GMT

@niklasmerz says

Where did you find this commit?

Mon, 23 Nov 2020 13:10:48 GMT

@chadwick.blackford says

@niklasmerz https://issues.apache.org/jira/browse/CB-2627?focusedCommentId=15961757&amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15961757

Mon, 23 Nov 2020 13:12:48 GMT

@niklasmerz says

No idea. Seems like this was not the right solution

Mon, 23 Nov 2020 13:20:59 GMT

@chadwick.blackford says

but what you use/do now?

Mon, 23 Nov 2020 13:25:06 GMT

@chadwick.blackford says

just tested on google chrome.. all cases work fine… 🤦‍♂️🏻

Mon, 23 Nov 2020 13:26:52 GMT

@niklasmerz says

Camera plugin works better

Mon, 23 Nov 2020 13:39:29 GMT

@norman137 says

The problem is the web view doesn‘t offer the same UI as the browser itself if I recall accurately. The android app is expected to provide their own file choosing implementation by overridding a hook method on the webview class and including every option that the normal browser provides is a bit more complicated because it involves adding/managing permissions from the framework and we can’t just force all apps declare those permissions.

One would then think: “well maybe the plugin should be providing the UI implementation”, and well, then you have to ask “what if there is multiple plugins that wants to handle browser file choosing?”.

I think in order to solve that problem, one will probably need to create a proof of concept, then bring it up on the dev mailing list to see if it makes sense to have it implemented.

In my apps I just use the camera plugin and have my own modal to let the user decide if they want to import an existing image or use the camera.

Mon, 23 Nov 2020 13:43:34 GMT

@chadwick.blackford says

@norman137 but what was changed ? because early was no problem with this… maybe we can revert some changes )

Mon, 23 Nov 2020 13:56:40 GMT

@norman137 says

The cordova framework uses a WebChromeClient file choosing intent, so we don't manually create the UI, we delegate that to an Intent.

In Android, Intents are used off-load a task to another app on the device. So what has changed is probably the OS version, or it's possible the device has a different file choosing app installed.

So the file choosing UI that is shown could vary by:

  • Different OS versions
  • Different device vendors
  • User installing a different app that handles that Intent. The majority of the cordova framework that handles this intent hasn't changed in 6 years. 15 months ago, it was updated to handle multiple file inputs.

https://github.com/apache/cordova-android/blame/master/framework/src/org/apache/cordova/engine/SystemWebChromeClient.java#L215

Mon, 23 Nov 2020 15:38:01 GMT

@jcesarmobile says

Input file has never allowed to take pictures on cordova-android

Channel #cordova-electron (2 messages)


Mon, 23 Nov 2020 10:26:14 GMT

@timkremer says

Has anyone successfully built & packaged mac apps for the store?

Mon, 23 Nov 2020 10:26:50 GMT

@timkremer says

(See Kinan's issue above)