Cordova Slack Digest

Tue, 31 Aug 2021 08:25:17 GMT

User count: 4602

Join the conversation at slack.cordova.io

Channel #general (2 messages)


Mon, 30 Aug 2021 23:25:48 GMT

@risikoruk3678 says

Hello everyone

Mon, 30 Aug 2021 23:28:38 GMT

@risikoruk3678 says

just wondering if anyone encountered this situation as well. I stored an mp3 after downloading it from a server and converted the file:/ path to the new app:/. The problem is that if I try the new URL with app:/ in any HTML5 audio, it plays just fine but in the Media plugin I just get the "cannot use the audio file (error 1). It plays in the HTML5 audio so I assume something is wrong elsewhere..

Channel #plugins (2 messages)


Mon, 30 Aug 2021 12:49:10 GMT

@norman137 says

Plugins are clobbered onto the window object. So they are just simply available after the deviceready is fired.

My cordova apps also use ReactJS, the pattern I have is I wait for the deviceready event before I render anything. That way all my react components can assume plugins are ready to be used. This may or may not make sense depending how heavily reliant you are on plugins.

Tue, 31 Aug 2021 05:12:43 GMT

@saurabhbehra5 says

Thanks @norman137 yes its working with window object