My cordova apps stuck after instaling the plugin media

134 Views Asked by At

I tried to build an cordova based android aplication, with "cordova-plugin-media" installed because I want my apps to be able to record my voice. after the build success with no errors, I run the apps, the recording is working, but my apps become stuck.

The Cordova project was exported from Construct 2, and I've already checked the media permission on export. I've built the apps using SDK via CMD, and also add the "plugin-media" here. before I add the plugin, the apps run well, but it can't record. That's why I re-build it with plugin-media attached.

From the result export, I only edit the config.xml on my Cordova project.

 <?xml version='1.0' encoding='utf-8'?>
<widget id="com.mawar.speak" version="1.0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Speech Platformer</name>
    <description>
        Aplication Description.
    </description>
    <author email="[email protected]" href="http://cordova.io">
        Node.js
    </author>
    <content src="index.html" />
    <plugin name="cordova-plugin-whitelist" spec="1" />
    <access origin="*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <!-- fullscreen -->
    <preference name="Fullscreen" value="true" />
    <!-- orientation -->
    <preference name="Orientation" value="landscape" />
    <engine name="android" spec="~7.1.1" />
</widget> 

What I want is to make my apps run well with plugin-media installed. But when I build with it, it's stuck as I run it on my device.

Sorry for my bad english.

0

There are 0 best solutions below