Cordova Slack Digest

Tue, 02 Mar 2021 08:35:10 GMT

User count: 4388

Join the conversation at slack.cordova.io

Channel #general (3 messages)


Mon, 01 Mar 2021 10:51:27 GMT

@iliya.stambolov says

Hello! I am trying to use the file plugin, but for some reason there is nowhere documented how to add already downloaded files on my computer and store them manualy inside cordova' s app directory. Anyone knows how to do that ?

Mon, 01 Mar 2021 16:36:15 GMT

@tomkinson says

Anyone experienced slow app init time on slightly older devices? Our app used to open quite fast on old devices (and on a Note 20 Ultra is 3-4 sec). We‘ve since had a few monolith files in MVC grow, we’re in SPA, and we thought it was all the plugins causing it, needing to be parsed before device ready. However even after removing all the plugins we still had 8 to 10 seconds before device ready was fired. Any leading culperates?

Mon, 01 Mar 2021 16:41:52 GMT

@norman137 says

If you removed plugins then that only leaves javascript that being parsed/ran on startup.... Have you use the performance audit tools? Might point to where potential bottlenecks are.

Channel #cordova-ios (5 messages)


Mon, 01 Mar 2021 21:16:41 GMT

@mattwenner1 says

I’m working on detecting if an app is installed, using the following snippet:

setTimeout(function () {
    if (new Date().valueOf() - now > 100) return;
    window.location = "<https://itunes.apple.com/appdir>";
}, 25);
window.location = "appname://";```
If the app is not installed, it properly redirects the browser to the app store/url provided.  If the app is installed, the user has the option to “cancel” or “open”.  Is there a way to detect if “cancel” was clicked?

Mon, 01 Mar 2021 21:19:56 GMT

@dpogue says

no, IIRC that “open/cancel” prompt is non-blocking too, so your setTimeout will fire while it's showing

Mon, 01 Mar 2021 21:21:51 GMT

@mattwenner1 says

ahh ok, that sounds right based on the behavior I’m seeing then. Any other good methods for detecting if an app is installed without implementing Universal Links?

Mon, 01 Mar 2021 21:22:32 GMT

@dpogue says

Nope, Apple specifically considers it a privacy concern to be able to detect from a website if an app is installed

Mon, 01 Mar 2021 21:24:24 GMT

@mattwenner1 says

Ohh, got ya. Good to know, that explains why all the solutions I see feel hacky and keep failing 🙂

Channel #france (1 messages)


Mon, 01 Mar 2021 15:01:01 GMT

@algotech says

plop

Channel #cordova-android (7 messages)


Mon, 01 Mar 2021 13:30:05 GMT

@xavier.serra says

Dear @norman137,

Mon, 01 Mar 2021 13:30:33 GMT

@xavier.serra says

Also tested with a previous version that doesn't include AndroidX adapter and it also fails randomly.

Mon, 01 Mar 2021 13:30:55 GMT

@xavier.serra says

Other teams developing other apps also report time-to-time crashes

Mon, 01 Mar 2021 13:31:20 GMT

@xavier.serra says

However, crashes are more often if allowEdit flag is set to true

Mon, 01 Mar 2021 13:35:57 GMT

@norman137 says

allowEdit is not reliable on android. See https://github.com/apache/cordova-plugin-camera#android-quirks-1

Imo, allowEdit should be removed for android.

Mon, 01 Mar 2021 14:01:51 GMT

@xavier.serra says

ok, thanks for your quick response

Mon, 01 Mar 2021 19:44:34 GMT

@marshall says

Anyone ever have a user unable to download an app from the Google Play Store? We have a user on the latest Android OS on a Samsung Note 10+ that is getting the “Can’t download this app” message from the Play store. She has followed all the suggestions from the article the play store linked her to, but still can’t download. We have hundreds of other Note 10+ users who have been able to download and use the app. Any ideas?