Cordova Slack Digest

Fri, 20 Nov 2020 08:25:46 GMT

User count: 4237

Join the conversation at slack.cordova.io

Channel #general (3 messages)


Fri, 20 Nov 2020 00:07:04 GMT

@osaintilien55 says

I find that when my mobile keyboard opens, instead of going over my content it squashes it, how can I avoid this?

Fri, 20 Nov 2020 00:24:01 GMT

@norman137 says

I think I resolve this by setting the height to 100vh instead of 100% if I recall properly.

Fri, 20 Nov 2020 00:25:37 GMT

@osaintilien55 says

okay will try that out

Channel #cordova-ios (2 messages)


Thu, 19 Nov 2020 22:52:47 GMT

@mathewp.94 says

Hello folks, I‘ve got a cordova app wrapping a Vue app, and I want to deeplink into it. What’s the best approach for this? I want to be able to link only on specific urls, for example <http://www.myApp.com/product/*|www.myApp.com/product/*> I've seen https://www.npmjs.com/package/cordova-plugin-app-scope in this channel but that appears to link into specific HTML files, and not pass any via a JS api.

Do I need to use one of the 100s of forks of the cordova-universal-links-plugin ?

Thu, 19 Nov 2020 22:53:25 GMT

@mathewp.94 says

I also support Android with this app, so ideally I can use a single plugin to support iOS and Android deep links

Channel #cordova-android (17 messages)


Thu, 19 Nov 2020 21:55:28 GMT

@ppetree says

What is the status on or preferred method of dealing with android.support vs AndroidX? 1/2 my plugins are using android.support and the build service is AnroidX.

Thu, 19 Nov 2020 22:03:31 GMT

@dpogue says

ugh, this is like the Python 2 vs Python 3 issue all over again, but in the Android world 🤦‍♂️🏼

Thu, 19 Nov 2020 22:04:02 GMT

@dpogue says

It's not possible to use both at the same time. There are tools (including some Cordova plugins) that will automatically rewrite your code to use AndroidX at build time

Thu, 19 Nov 2020 22:04:31 GMT

@dpogue says

https://github.com/dpa99c/cordova-plugin-androidx-adapter

Thu, 19 Nov 2020 22:05:58 GMT

@dpogue says

We‘re throwing around some ideas about how Cordova can deal with this, since it seems like Google might be pushing harder to use the AndroidX WebView going forward. But making Cordova depend on AndroidX would break all existing plugins that rely on the support library. It’s a mess (entirely of Google's making) 😞

Thu, 19 Nov 2020 22:07:25 GMT

@joel says

For what it's worth, for our project https://github.com/dpa99c/cordova-plugin-androidx-adapter worked like a charm, across 32 plugins.

Thu, 19 Nov 2020 22:53:45 GMT

@mathewp.94 says

Hello folks, I‘ve got a cordova app wrapping a Vue app, and I want to deeplink into it. What’s the best approach for this? I want to be able to link only on specific urls, for example <http://www.myApp.com/product/*|www.myApp.com/product/*>

Do I need to use one of the 100s of forks of the cordova-universal-links-plugin ?

I also support iOS with this app, so ideally I can use a single plugin to support iOS and Android deep links

Thu, 19 Nov 2020 22:58:56 GMT

@dpogue says

https://github.com/AyogoHealth/cordova-plugin-app-scope is what I use/wrote to handle this

Thu, 19 Nov 2020 22:59:20 GMT

@mathewp.94 says

Does that support pass data to JS?

Thu, 19 Nov 2020 22:59:35 GMT

@mathewp.94 says

I see it has no JS api

Thu, 19 Nov 2020 23:00:14 GMT

@dpogue says

No, it just maps a URL like <http://www.myapp.com/product/foo|www.myapp.com/product/foo> to &lt;cordova www path&gt;/foo

Thu, 19 Nov 2020 23:01:12 GMT

@dpogue says

We use hash navigation for our apps, so something like <http://example.com/app/#/login|example.com/app/#/login> gets turned into &lt;www&gt;/index.html#/login

Thu, 19 Nov 2020 23:01:38 GMT

@mathewp.94 says

hmm

Thu, 19 Nov 2020 23:01:55 GMT

@mathewp.94 says

It feels like this could possibly work

Thu, 19 Nov 2020 23:04:57 GMT

@mathewp.94 says

I will do some experiments and report back

Thu, 19 Nov 2020 23:05:00 GMT

@mathewp.94 says

thanks for the info

Thu, 19 Nov 2020 23:10:51 GMT

@dpogue says

Definitely let me know if you run into issues or find the (admittedly minimal) docs to be confusing