Cordova Slack Digest

Fri, 23 Oct 2020 08:32:30 GMT

User count: 4191

Join the conversation at slack.cordova.io

Channel #general (13 messages)


Thu, 22 Oct 2020 12:30:51 GMT

@xiao1992jin says

👋 I’m here! What’d I miss?

Thu, 22 Oct 2020 13:13:55 GMT

@abul.asar22 says

Hello everyone, I recently upgraded cordova to v9. On android it is not showing window.device.platform throwing error Uncaught TypeError: Cannot read property 'platform' of undefined . How can i fix this ?

Thu, 22 Oct 2020 13:26:04 GMT

@norman137 says

I trust you are waiting for deviceready event?

Thu, 22 Oct 2020 13:34:47 GMT

@abul.asar22 says

yes. I am even doing this check in deviceready callback.

Thu, 22 Oct 2020 13:36:45 GMT

@norman137 says

Then I'd try reinstalling the plugin...

cordova plugin add cordova-plugin-device```

Thu, 22 Oct 2020 14:02:08 GMT

@abul.asar22 says

still no success : (

Thu, 22 Oct 2020 14:02:36 GMT

@abul.asar22 says

while bulding the app i can see following error in console

Plugin doesn't support this project's cordova-android version. cordova-android: 9.0.0, failed version requirement:
      <6.3.0
Skipping 'cordova-plugin-compat' for android```

Thu, 22 Oct 2020 14:03:23 GMT

@abul.asar22 says

But i can’t see cordova-plugin-compat in the config.xm dependency list.

Thu, 22 Oct 2020 14:08:40 GMT

@hayley.dawson says

Hi all, strange question (maybe). I am tasked with building a cordova plugin for the rest of my team. However, I‘m struggling to get the IDE we use (Intellij Idea) to recognize that the cordova files exist. Any suggestions? (I’m willing to swap to a different IDE as well). I also noticed that cordova thinks the project isn‘t a cordova project, but it is a plugin with the plugin.xml...which doesn’t appear to need to have config.xml?

Fri, 23 Oct 2020 02:32:06 GMT

@xiao1992jin says

Please guide me to run this app.

Fri, 23 Oct 2020 02:32:19 GMT

@xiao1992jin says

What information do you need more?

Fri, 23 Oct 2020 02:44:40 GMT

@norman137 says

You're trying to run an app with no android device connected and no installed emulators.

Fri, 23 Oct 2020 02:44:56 GMT

@norman137 says

Open up the “AVD Manager” in android studio to create an emulator

Channel #cordova-ios (1 messages)


Thu, 22 Oct 2020 13:57:08 GMT

@grandhi.subrahmanyam says

Hi, I recently upgraded my cordova-cli to 10. After upgrade Http/https requests are not working. I read the following doc but in my case BE not allowing me to enable CORS. Is there any other way? https://breautek.com/2020/07/14/enabling-cors/

Channel #plugins (1 messages)


Thu, 22 Oct 2020 22:12:08 GMT

@patrick662 says

cordova-plugin-camera 5.0 - Is anyone having any luck with the quality setting? I'm setting it down to 20 but I am not seeing the image size decrease when I take it and upload to my web service.

                quality: 20,
                destinationType: Camera.DestinationType.FILE_URI,
                sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                encodingType: Camera.EncodingType.JPEG,
                correctOrientation: true
            });```