Back to Cordova

2021 01 19

slack-digest/2021-01-19.md

latest9.4 KB
Original Source

Cordova Slack Digest

Tue, 19 Jan 2021 09:09:29 GMT

User count: 4330

Join the conversation at slack.cordova.io

Channel #general (16 messages)


Mon, 18 Jan 2021 10:04:14 GMT

@aiuspaktyn says

I can't find any info about it, with the #inappbrowser plugin is it possible to send custom #headers? Thanks

Mon, 18 Jan 2021 17:39:58 GMT

@premji012 says

Found a user satisfaction survey results for app development frameworks.

Mon, 18 Jan 2021 18:03:50 GMT

@noah.cooper says

in plugin.xml, is there any way to have an optional preference that defaults to an empty string? i expected this to work:

<preference name="MY_VAR" default="" /> no such luck, though. that causes an error to be thrown if no value is provided by the developer when using the plugin:

Variable(s) missing (use: --variable MY_VAR=value).

Mon, 18 Jan 2021 19:17:13 GMT

@dpogue says

@noah.cooper You can use your plugin to inject a blank preference into the platform's config.xml. If it's also provided at the app-level config.xml, that will override the one from the plugin. ex. https://github.com/AyogoHealth/cordova-plugin-update-notifier/blob/main/plugin.xml#L37

Mon, 18 Jan 2021 19:19:24 GMT

@noah.cooper says

@dpogue so you’re saying if i just use the value attribute instead of default, it’ll work?

Mon, 18 Jan 2021 19:19:43 GMT

@dpogue says

Not quite, you have to put it inside the config-file block

Mon, 18 Jan 2021 19:38:28 GMT

@noah.cooper says

@dpogue that doesn’t seem to help, actually. in the example you linked, that’s not a preference specific to cordova-plugin-update-notifier like in this case.

if I do:

<preference
&lt;config-file parent="/*" target="config.xml"&gt;
  &lt;preference name="MY_VAR" value="" /&gt;
&lt;/config-file&gt;```
the same error is still thrown:

```Variable(s) missing (use: --variable MY_VAR=value).```

Mon, 18 Jan 2021 19:40:00 GMT

@dpogue says

I hate how the preference tag has multiple meanings in different contexts, because it always confuses everyone 😑

Mon, 18 Jan 2021 19:40:33 GMT

@dpogue says

In plugin.xml (within the plugin element), preference defines a variable that must be passed in on the command-line at install time (or via package.json on restore)

Mon, 18 Jan 2021 19:40:59 GMT

@dpogue says

This is entirely different than the preference key/value pairs defined in config.xml

Mon, 18 Jan 2021 19:41:20 GMT

@chadwick.blackford says

> because it always confuses everyone you are not alone 😃

Mon, 18 Jan 2021 19:43:31 GMT

@noah.cooper says

@dpogue i’m talking about the former. to your point, it must be passed in on the command line at install time, but i’m trying to figure out a way to allow an empty string to be used at install time

Mon, 18 Jan 2021 19:45:17 GMT

@noah.cooper says

reason being i’m trying to set something in *-Info.plist either to a value specified at install time, or an empty string

Mon, 18 Jan 2021 19:45:39 GMT

@noah.cooper says

i’m thinking this might not be possible and i might have to do this with a hook

Mon, 18 Jan 2021 19:46:52 GMT

@dpogue says

Yeah, if default="" is getting detected as not having a default, then I don't think it's supported 😞

Mon, 18 Jan 2021 19:48:17 GMT

@noah.cooper says

yeah i think https://github.com/apache/cordova-common/blob/master/src/PluginInfo/PluginInfo.js#L68 stops this from working. shoot

Channel #tools (1 messages)


Mon, 18 Jan 2021 14:46:40 GMT

@mario.kurzweil says

@mario.kurzweil has left the channel

Channel #cordova-ios (22 messages)


Mon, 18 Jan 2021 13:29:44 GMT

@mario.kurzweil says

Is the plugin https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/ obsolete with cordova-ios 6.1.1? Are there any troubles if it’s still installed?

Mon, 18 Jan 2021 13:29:59 GMT

@chadwick.blackford says

@mario.kurzweil yes

Mon, 18 Jan 2021 13:30:33 GMT

@chadwick.blackford says

if you have old plugin, yes, it can produce some problems..

Mon, 18 Jan 2021 13:32:41 GMT

@mario.kurzweil says

@chadwick.blackford the support of the splashscreen plugin is in my opinion really good. Thx for the quick response 🙂

Mon, 18 Jan 2021 13:33:09 GMT

@chadwick.blackford says

@mario.kurzweil cordova support splascreen too…

Mon, 18 Jan 2021 13:33:50 GMT

@norman137 says

it's obsolete because the splashscreen code has moved to the core cordova-ios platform. If you only develop for iOS, you can remove the plugin altogether. Otherwise I suggest updating to the latest release of the splashscreen. Running an older version may cause conflicts.

Mon, 18 Jan 2021 13:36:39 GMT

@jcesarmobile says

Latest version should automatically skip iOS install if using latest cordova-ios

Mon, 18 Jan 2021 14:00:12 GMT

@mario.kurzweil says

I know it’s the wrong channel, but was the splashscreen code also moved to cordova-android platform?

Mon, 18 Jan 2021 14:01:30 GMT

@norman137 says

No

Mon, 18 Jan 2021 14:01:35 GMT

@norman137 says

It will be... eventually

Mon, 18 Jan 2021 20:15:18 GMT

@jose2013 says

Issue/Workaround info:

I needed to upgrade to the BigSur and Xcode 12.3 but after this I cannot run an App in the simulator never more, it fails with Building for iOS Simulator, but the embedded framework 'FlyBuySDK.framework' was built for iOS + iOS Simulator.. It seems to be related to Xcode enforcing the use of XCFramework.

Workaround: Under Build Settings - Navigate to Validate Workspace - Change it to YES.

Have anyone seen the error above?

Mon, 18 Jan 2021 20:15:47 GMT

@jose2013 says

Note: I can now build as before after using the workaround 😛

Mon, 18 Jan 2021 20:16:04 GMT

@dpogue says

yeah... I've run into that with some non-Cordova projects

Mon, 18 Jan 2021 20:16:17 GMT

@dpogue says

You can actually change Validate Workspace back to NO and it will still work

Mon, 18 Jan 2021 20:16:39 GMT

@dpogue says

You just need to change it once so that it actually gets declared in the Xcode project file

Mon, 18 Jan 2021 20:16:47 GMT

@jose2013 says

Oh, good that you mentioned. This is coming from a plugin that I developing, the plugin uses an 3rd party SDK.

Mon, 18 Jan 2021 20:17:08 GMT

@dpogue says

Yep, basically anything distributed as a .framework file is going to run into this

Mon, 18 Jan 2021 20:17:21 GMT

@dpogue says

Apple wants everyone to move to .xcframework

Mon, 18 Jan 2021 20:18:30 GMT

@jose2013 says

> You just need to change it once so that it actually gets declared in the Xcode project file Should we have it explicit set in the cordova-ios to prevent it happening to other users?

Mon, 18 Jan 2021 20:18:53 GMT

@jose2013 says

I meant, isn’t the case for a fix?

Mon, 18 Jan 2021 20:19:25 GMT

@dpogue says

Yeah, that would probably be a good idea, can you open an issue on cordova-ios for it?

Mon, 18 Jan 2021 20:20:09 GMT

@jose2013 says

Yep, thank you! I’m looking forward to create this fix

Channel #cordova-android (4 messages)


Mon, 18 Jan 2021 13:15:56 GMT

@chadwick.blackford says

Hallo guys!

I found some problem.. maybe anyone can help.

with android “singleInstance” or “singleTop” after onPause my app was killed from system tasks. and then if I switched to the app again cordova do app restart…. How I can fix this?

tested on:

  • Huawei P20 Pro - no onRESUME event
  • Nexus 5X - onRESUME event fired always

fyi @norman137 / @timbru / @niklasmerz

Updated: <https://github.com/apache/cordova-android/issues/1150>

Mon, 18 Jan 2021 18:29:35 GMT

@amir.jahan says

Hi Everyone, I am Amir and I work in iOS and Android (Swift and Kotlin). I also do teach, here are two of my free courses if it's helpful to anyone. 

<https://www.udemy.com/course/android-app-development-in-2-hours/|Android App Development in 2 Hours>

<https://www.udemy.com/course/iphone-app-development-in-2-hours/|iPhone App Development in 2 Hours>

Mon, 18 Jan 2021 19:09:13 GMT

@info460 says

hello again, I have strange issue. I was redoing my OS and at the end I have different name for my account in OS. I have a app which was previously released, now having a new version. When I am trying to release again the gradle is giving me the Keystore file does not exist error because it referencing the old location of the keystore file. I have the same behavior if I try JSON or even if I use command line. (searching the files with old path/name gives me zillion results)

Mon, 18 Jan 2021 19:39:43 GMT

@info460 says

I have one additional question. I noticed that APK is quite easy to decompress and see nicely all files and images(from which the project was build) Is there any way how to prevent this?

Channel #cordova-osx (1 messages)


Mon, 18 Jan 2021 14:47:57 GMT

@mario.kurzweil says

@mario.kurzweil has left the channel

Channel #css (1 messages)


Mon, 18 Jan 2021 14:46:26 GMT

@mario.kurzweil says

@mario.kurzweil has left the channel