Wed, 14 Oct 2020 08:31:12 GMT
Join the conversation at slack.cordova.io
Tue, 13 Oct 2020 10:35:07 GMT
@kornelux1 says
Is it possible to attach
extraResources
like assets folder to thecordova-electron
build process? It‘s possible inelectron-builder
but I can’t find any information how to do it incordova-electron
.
Tue, 13 Oct 2020 17:25:24 GMT
@tomkinson says
Anyone been on HTTP2 for a while and can report the worthwhilness of upgrading for multplexing? Was debating waiting for HTTP3 which I don't think is ready yet, but still being on HTTP1.1 with a complex media feed is...challenging
Tue, 13 Oct 2020 17:42:11 GMT
@norman137 says
HTTP3 is not released yet. There's only a draft.
Http2 there is wide range support, and browsers that support http2 will use it if available, otherwise it will just fallback to http1.1. So there isn‘t really much to lose for enabling http2. While technically not required by the http2 spec, all major browsers implementations require encryption to use http2. If you’re already have encryption setup, then it should be as easy as “flicking a switch”... at least it was for nginx.
Anecdotally we saw some improvements with multiplexing. There is a clear 100-200ms time save between the initial connection that has to establish the TCP socket and subsequent connections that just reuses the initial TCP socket. But this wasn't something that was benchmarked or anything. We just “eyed it”.
Tue, 13 Oct 2020 19:41:42 GMT
@es.abdelaaziz says
hello, I m new on mobile development based on cordova, I wanna implement a stream player, I used the media plugin but it doesn t work for stream, is there any solution for my situation ? thanks
Tue, 13 Oct 2020 19:43:26 GMT
@dpogue says
<audio>
or<video>
HTML tags?
Tue, 13 Oct 2020 19:47:14 GMT
@es.abdelaaziz says
I only tested it on a web browser and it work, but I didn't do it on my samasung Device, do you think that is better to use html5 solutions instead of cordova ones (I m talking about all staff not only media)?
Tue, 13 Oct 2020 19:54:31 GMT
@norman137 says
It's probably best to use browser features as much as possible unless if their behaviour/control is insufficient for your use case.
I would first determine why it doesn't appear to work on the device. Knowing the error would be the first step to determine what your options are. Use the Chrome web inspector (for android) or the Safari Web Inspector (for iOS) to take a look at the javascript console.
https://developers.google.com/web/tools/chrome-devtools/remote-debugging
Tue, 13 Oct 2020 20:03:09 GMT
@dpogue says
The purpose of Cordova is firstly to package web apps for native app stores, and secondarily to provide access to native features that are missing from the web. So it's always best to try to do stuff with web technologies, and only reach for native plugins when absolutely necessary
Tue, 13 Oct 2020 20:09:20 GMT
@es.abdelaaziz says
many thanks for your help, I will debug to find the issue when I m using html5 audio on my devide.
Tue, 13 Oct 2020 20:53:13 GMT
@es.abdelaaziz says
Thank for showing me the way to debugg, I fix the issue, my stream was on http and it cause a permission issue, as I m the owner of the stream I publish it on a secure ssl canal and it works
Tue, 13 Oct 2020 12:09:22 GMT
@pablo.caselas says
I'm using window.Ionic.WebView.convertFileSrc as base url to use to a proxy scheme due to some cookie bugs on iOS 14 (happened on ios 13.3 beta too)
Tue, 13 Oct 2020 12:09:27 GMT
@pablo.caselas says
https://github.com/ionic-team/cordova-plugin-ionic-webview/issues/475
Tue, 13 Oct 2020 12:10:07 GMT
@pablo.caselas says
they work just fine on regular webview http requests, but not on cordova-file-transfer plugin, for instance
Tue, 13 Oct 2020 12:17:26 GMT
@pablo.caselas says
I get NSURLErrorDomain and the url is like ionic://app/_https_proxy_example.com/**
Tue, 13 Oct 2020 12:22:29 GMT
@niklasmerz says
What are you using? _https_proxy is something I built into the webview that got never released.
Tue, 13 Oct 2020 12:37:36 GMT
@pablo.caselas says
aha
Tue, 13 Oct 2020 12:38:37 GMT
@pablo.caselas says
yes, I am using your branch
Tue, 13 Oct 2020 12:38:39 GMT
@pablo.caselas says
“cordova-plugin-ionic-webview”: “git+https://github.com/NiklasMerz/cordova-plugin-ionic-webview.git#schemehandler”,
Tue, 13 Oct 2020 12:40:11 GMT
@pablo.caselas says
should I use ionic webview 5 instead?
Tue, 13 Oct 2020 12:40:59 GMT
@niklasmerz says
Not sure if this branch is up-to date. Actually I am currently in the progress to bring that into cordova but it takes time.
Tue, 13 Oct 2020 12:41:08 GMT
@niklasmerz says
Are you using the proxy feature?
Tue, 13 Oct 2020 12:41:20 GMT
@pablo.caselas says
yes
Tue, 13 Oct 2020 12:41:37 GMT
@pablo.caselas says
because on ios 14 I am having the same issue
Tue, 13 Oct 2020 12:41:52 GMT
@pablo.caselas says
that the cookie is not saved by the webview
Tue, 13 Oct 2020 12:48:59 GMT
@niklasmerz says
Then please go here and explain Apple how your app works and how iOS 14 breaks it. We need to help them understand our problems. https://bugs.webkit.org/show_bug.cgi?id=213510
Tue, 13 Oct 2020 12:52:12 GMT
@niklasmerz says
We are using this branch right now: https://github.com/GEDYSIntraWare/cordova-plugin-ionic-webview#custom
I started to built it into cordova-ios and you could test it out: https://github.com/apache/cordova-ios/pull/1004
Tue, 13 Oct 2020 14:00:22 GMT
@pablo.caselas says
I'll do it, however how is that branch supposed to work? should it work out of the box with native http? do I need to set some variable or something?
Tue, 13 Oct 2020 14:01:18 GMT
@pablo.caselas says
I guess you also need your cordova-ios branch, am I right?
Tue, 13 Oct 2020 14:01:55 GMT
@pablo.caselas says
or if you have the cordova-ios branch you don't need the ionic branch anymore?
Tue, 13 Oct 2020 14:11:23 GMT
@niklasmerz says
Yes the last one. The iOS branch is supposed to replace the Ionic solution.
Tue, 13 Oct 2020 14:11:50 GMT
@niklasmerz says
You need to call the function in the description to convert the URL.
Tue, 13 Oct 2020 14:34:49 GMT
@pablo.caselas says
ok
Tue, 13 Oct 2020 14:35:39 GMT
@pablo.caselas says
and if you're using cordova plugins like corova-file-transfer, is it supposed to work with it?
Tue, 13 Oct 2020 14:45:16 GMT
@pablo.caselas says
I'm guessing to add this platform you can do it like this: “cordova platform add https://github.com/GEDYSIntraWare/cordova-ios.git#proxy”, am I right?
Tue, 13 Oct 2020 15:17:15 GMT
@pablo.caselas says
that does not work, so I downloaded the repo, checked out the branch and tried to install it from local folder but it's not working for me
Tue, 13 Oct 2020 15:31:26 GMT
@niklasmerz says
That should work. Make sure to delete the ios platform and add it like you said. Use convertFileUrl so use the proxy. File Transfer probably wont work because it does the connection natively
Tue, 13 Oct 2020 15:38:49 GMT
@pablo.caselas says
I'll try again, but it was failing because of some script not finding a file
npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall rename```
Tue, 13 Oct 2020 15:42:22 GMT
@niklasmerz says
I don't think Cordova uses babel. You could try to delete node_modules
Tue, 13 Oct 2020 15:52:01 GMT
@pablo.caselas says
ok
Tue, 13 Oct 2020 15:53:51 GMT
@pablo.caselas says
by the way, how does your schemahandler works under the hood? for regular http requests works just fine. When using native download and upload like cordova-file-transfer, I need to use the regular endpoint but it's picking up the cookies
Tue, 13 Oct 2020 16:43:56 GMT
@niklasmerz says
You could have a look at the PR above. It's not that complicated. It syncs the cookies with the Webview. If the other plugins do that too it might work
Wed, 14 Oct 2020 04:16:07 GMT
@dpogue says
Wed, 14 Oct 2020 03:36:51 GMT
@purplecabbage says
Does anyone have any topics they would like to lead for the next hangout ?
Wed, 14 Oct 2020 06:09:16 GMT
@niklasmerz says
Maybe we could talk about my iOS WKWebView Proxy if someone is interested. I am still not sure if it should be part of the platform or a plugin. https://github.com/apache/cordova-ios/pull/1004