Cordova Slack Digest

Tue, 30 Mar 2021 08:23:03 GMT

User count: 4426

Join the conversation at slack.cordova.io

Channel #random (1 messages)


Mon, 29 Mar 2021 11:01:31 GMT

@hugo.bayet says

@hugo.bayet has left the channel

Channel #general (1 messages)


Mon, 29 Mar 2021 18:50:49 GMT

@iliasmerk says

Hello,  I updated the android version of an app that was 5.0.1 to android 9 with target sdk 28. The application didn‘t ask me for file storage permission and didn’t start. My manifest has the WRITE_EXTERNAL_STORAGE permission. Then I noticed that the file and media permission was declined. When I accept from android the permission the app started. How can I ask for the permission from the start of the app ?

Channel #cordova-ios (26 messages)


Mon, 29 Mar 2021 13:01:25 GMT

@ricardosohn says

Hey guys, is anyone else using a Mac M1 ? I‘m having some problems with cordova-ios and ionic-v1 on the new macs... The CSS files wont load, and if I reload the page on the simulator it does show me the error “Did not parse stylesheet at ‘ionic://localhost/css/app.css’ because non CSS MIME types are not allowed in strict mode. ionic://localhost/lib/ionic-sdk/release/js/angular-sanitize.min.js.map”. Then I’ve checked in the network request, and it's coming as “application/octet-stream” instead of “text/css”. Any ideas ?

Mon, 29 Mar 2021 13:03:04 GMT

@ricardosohn says

Also, how do I add the platform ios on cordova but using my own cordova-ios package?

Mon, 29 Mar 2021 13:03:35 GMT

@norman137 says

How are you loading the css? are you using <link href="..." type="text/css" />?

Mon, 29 Mar 2021 13:04:28 GMT

@ricardosohn says

yeah, like this: <link type="text/css" rel="stylesheet" media="all" href="css/app.css">

Mon, 29 Mar 2021 13:04:43 GMT

@norman137 says

> Also, how do I add the platform ios on cordova but using my own cordova-ios package? cordova platform add file:/path/to/your/cordova-ios/fork

Alternatively you can also point the path to your github fork and cordova/npm will clone the repo from github

Mon, 29 Mar 2021 13:05:21 GMT

@ricardosohn says

Oh, easier than I thought. Thanks 🙂

Mon, 29 Mar 2021 13:05:48 GMT

@norman137 says

Then I'm not sure... I assume it must be something with the scheme handler

Mon, 29 Mar 2021 13:06:01 GMT

@ricardosohn says

yup, that's why I wanna use my own cordova-ios xD

Mon, 29 Mar 2021 13:06:47 GMT

@norman137 says

I‘d try reproducing the issue in a simple cordova app, cordova-ios@6 also has support for schemes without using the ionic webview, I’d curious if the issue happens there as well...

Mon, 29 Mar 2021 13:07:46 GMT

@ricardosohn says

I can say I've only tried with latest cordova, ios@5.1.1 and ionic-v1 / ionic 4

Mon, 29 Mar 2021 13:08:06 GMT

@ricardosohn says

even with the minimal example, mine did not work

Mon, 29 Mar 2021 13:08:16 GMT

@ricardosohn says

but on ionic 4 it does work

Mon, 29 Mar 2021 13:08:22 GMT

@ricardosohn says

which is strange 🙂

Mon, 29 Mar 2021 13:08:56 GMT

@norman137 says

I don‘t use the ionic framework, but I do use the ionic webview with cordova-ios@6 and I don’t see that issue on my apps.

Mon, 29 Mar 2021 13:09:13 GMT

@norman137 says

for what it's worth

Mon, 29 Mar 2021 13:09:16 GMT

@ricardosohn says

I dont see that issue as well, when I use a intel-based mac 😞

Mon, 29 Mar 2021 13:10:40 GMT

@norman137 says

That‘s extra strange haha, I wouldn’t expect there be a difference between intel-based macs and M1 macs here... I mean they both run a simulator, that means one of them is not “simulating” a device properly... I assume it works then when ran on a physical ios device?

Mon, 29 Mar 2021 13:10:53 GMT

@ricardosohn says

nope

Mon, 29 Mar 2021 13:11:00 GMT

@ricardosohn says

I thought it would

Mon, 29 Mar 2021 13:11:18 GMT

@ricardosohn says

but when I tried it, the exact same issue was reproduced on the physical device as well

Mon, 29 Mar 2021 13:11:24 GMT

@norman137 says

strange...

Mon, 29 Mar 2021 13:11:28 GMT

@ricardosohn says

very strange xd

Mon, 29 Mar 2021 13:44:15 GMT

@ricardosohn says

i've done it all again, and now it works on the physical device

Mon, 29 Mar 2021 13:44:30 GMT

@ricardosohn says

why? I have no clue.

Mon, 29 Mar 2021 13:45:28 GMT

@ricardosohn says

seems it might be a simulator problem after all

Mon, 29 Mar 2021 17:15:29 GMT

@dpogue says

https://github.com/WebKit/WebKit/commit/e7aafb3dfcea6ab07c81d3ea99823d78ef985baa seems useful

Channel #france (1 messages)


Mon, 29 Mar 2021 11:01:04 GMT

@hugo.bayet says

@hugo.bayet has left the channel

Channel #cordova-android (1 messages)


Mon, 29 Mar 2021 09:06:39 GMT

@hugo.bayet says

How do I use the Android lifecycle onCreate in my Cordova plugin, since it‘s not available in CordovaPlugin.java ? (I need to use native code that relies on this lifecycle and calling it from initialize doesn’t seem to work)

Channel #helpplease (1 messages)


Mon, 29 Mar 2021 11:01:16 GMT

@hugo.bayet says

@hugo.bayet has left the channel