Cordova Slack Digest

Thu, 26 Nov 2020 08:27:08 GMT

User count: 4245

Join the conversation at slack.cordova.io

Channel #general (12 messages)


Wed, 25 Nov 2020 19:58:45 GMT

@khatridevk says

I have one behavioural issue: In iOS 13 with Cordova-ios6x I have rich text editor implemented, if I select the text and then select any tool say -make it bold. The selection from the text goes away and cursor moves to the beginning of the textarea.

Xcode has this in log at the same time,

Snapshotting a view that has not been rendered at least once requires afterScreenUpdates:YES

Also, I have added the user-select : text property already. Not sure what is causing this, have been stuck for some hours. Any detail to forward my search further will help.

Thanks

Thu, 26 Nov 2020 01:21:14 GMT

@mathewp.94 says

If I want to do things like add stuff to my AndroidManifest.xml, what is the best approach? Do I need to write a plugin? Should I just write a JS script that runs on cordova hook?

Thu, 26 Nov 2020 01:24:15 GMT

@dpogue says

You can use edit-config blocks within config.xml too

Thu, 26 Nov 2020 01:25:27 GMT

@mathewp.94 says

Looks interesting, might be what I need

Thu, 26 Nov 2020 01:26:32 GMT

@mathewp.94 says

Another question, is there a better way to clear out changes from previous builds other than removing the platform and then readding it? I find sometimes that changes to the AndroidManifest.xml will persist even when I do a cordova clean

Thu, 26 Nov 2020 01:33:25 GMT

@dpogue says

undoing things is complicated, especially when you have a mix of changes from plugins and config.xml and they might overlap

Thu, 26 Nov 2020 01:33:44 GMT

@dpogue says

I recommend always removing the platform and starting each build from scratch

Thu, 26 Nov 2020 01:34:04 GMT

@mathewp.94 says

Interesting

Thu, 26 Nov 2020 01:34:28 GMT

@mathewp.94 says

It would be nice if there was like a cordova platform reinstall android command or something

Thu, 26 Nov 2020 01:34:56 GMT

@mathewp.94 says

remove /platforms/android and then just regenerate it

Thu, 26 Nov 2020 01:35:17 GMT

@mathewp.94 says

since the platform code is already downloaded and available

Thu, 26 Nov 2020 01:35:40 GMT

@mathewp.94 says

But I don‘t really have an understanding of how that folder works so maybe that wouldn’t work

Channel #cordova-ios (4 messages)


Wed, 25 Nov 2020 20:11:54 GMT

@jose2013 says

Please, how can I detect when the user taps on any button on the “Location permission” modal?

Wed, 25 Nov 2020 20:29:31 GMT

@norman137 says

Generally speaking I don't use the default prompt which you have limited control of... and instead I use a permission plugin such as https://github.com/dpa99c/cordova-diagnostic-plugin|cordova-diagnostic-plugin so that I can check the permission status before I even attempt to use an API and request permissions myself using the plugin API, which will callback with a response. With that response I can decide logically to proceed with an action or provide a dialog prompt stating why the app may not be able to function.

Wed, 25 Nov 2020 20:32:08 GMT

@mathewp.94 says

That is one heck of a utility plugin

Wed, 25 Nov 2020 20:38:03 GMT

@norman137 says

Yah, it‘s important to install it with explicitly specifying https://github.com/dpa99c/cordova-diagnostic-plugin#available-modules|modules otherwise you’re app suddenly declares it wants permissions for everything, and that usually raises red flags with apple and google.

Channel #hangouts (2 messages)


Wed, 25 Nov 2020 19:33:58 GMT

@dpogue says

Just confirming: We're doing a hangout at the usual time tomorrow?

Wed, 25 Nov 2020 20:04:35 GMT

@jcesarmobile says

It’s thanksgiving, not sure how many USA folks are there, but they will probably not join