Michal
Posts: 0
Joined: Tue Jun 24, 2014 11:47 am

new Media() in PhoneGap doesn't work

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

new Media() in PhoneGap doesn't work

Hi Michal,

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

Michal
Posts: 0
Joined: Tue Jun 24, 2014 11:47 am

new Media() in PhoneGap doesn't work

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

new Media() in PhoneGap doesn't work

Hello Michal,

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

Michal
Posts: 0
Joined: Tue Jun 24, 2014 11:47 am

new Media() in PhoneGap doesn't work

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

new Media() in PhoneGap doesn't work

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.

Michal
Posts: 0
Joined: Tue Jun 24, 2014 11:47 am

new Media() in PhoneGap doesn't work

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

new Media() in PhoneGap doesn't work

Hello Michal,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

new Media() in PhoneGap doesn't work

HI Michal,

Did you get it working?

Michal
Posts: 0
Joined: Tue Jun 24, 2014 11:47 am

new Media() in PhoneGap doesn't work

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

Return to “Issues”