Page 1 of 2

new Media() in PhoneGap doesn't work

Posted: Tue Jun 24, 2014 11:50 am
by Michal

Hi

I just cannot figure out why myMedia = new Media(...); doesn't want to work. And it did, previously... Sth changed to PhoneGap? It even doesn't report anything. Like Media was not available at all.

Please have a look at my project (email is the same as my user here) to "c_testScreen" page and look at Load event and on onDeviceReady() function.

I test it through Appery.io Tester on Samsung Galaxy III

Cheers
Michal


new Media() in PhoneGap doesn't work

Posted: Tue Jun 24, 2014 12:33 pm
by Kateryna Grynko

Hi Michal,

This works only on native app installed on device:
http://docs.phonegap.com/en/3.3.0/cor...


new Media() in PhoneGap doesn't work

Posted: Tue Jun 24, 2014 2:35 pm
by Michal

Hi Katya

What does it mean? That it won't work through Appery Tester? But it worked before... Debugging is really difficult in this way. Can I make it somehow work through the tester?


new Media() in PhoneGap doesn't work

Posted: Tue Jun 24, 2014 6:09 pm
by Evgene Karachevtsev

Hello Michal,

Work of the plugins in tester is not guaranteed. You should better test installed apk/ipa


new Media() in PhoneGap doesn't work

Posted: Wed Jun 25, 2014 9:40 am
by Michal

Hi!

Thanks for your answers - now when installed from .apk works as it should... But now testing of the app is a pain... Maybe you could add an option to send the built .apk to an email address? Would be easier to fetch it on the mobile.

Or maybe there is an option to revert to previous Tester? Because previously it worked. Could you send me .apk of a version previous to 1.5? It appears I needlessly have upgraded...

Thanks


new Media() in PhoneGap doesn't work

Posted: Wed Jun 25, 2014 10:28 am
by Kateryna Grynko

Hi Michal,

You could use QR code that you see after APK is built, just scan it using any scanner and the app will be installed on your device.

If you are long to get an old version of Appery.io Tester you could download its source code and build it yourself: https://github.com/apperyio/tester/tr...

However, I would recommend that you use QR codes.


new Media() in PhoneGap doesn't work

Posted: Wed Jun 25, 2014 3:15 pm
by Michal

Thanks for your help, I will use QR codes then.

Unfortunately now when I try to build I get:
Build error
Most likely build error cause:
An error has occurred.

Could you give me some more insight into this problem? What is the real error?

Thank you


new Media() in PhoneGap doesn't work

Posted: Wed Jun 25, 2014 3:20 pm
by Evgene Karachevtsev

Hello Michal,

Please clarify, early you could get your application successfully? Have you made any changes?


new Media() in PhoneGap doesn't work

Posted: Mon Aug 18, 2014 6:07 am
by Kateryna Grynko

HI Michal,

Did you get it working?


new Media() in PhoneGap doesn't work

Posted: Mon Aug 18, 2014 6:14 am
by Michal

Regarding my last question about build - yes, I removed BarcodeScanner from Android source tree and that's why it stopped to build.

Media also work but not in Tester, only on installed .apk

Thank you
Michal