gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 167 forks source link

plugin fails silently #80

Closed brtn86 closed 8 years ago

brtn86 commented 8 years ago

In Android I'm calling the plugin exactly as in the examples. The plugin is definitely available (I checked in console), however it fails silently. Nothing is returned at all, not even an error message.

Any ideas what might be causing this?

Cheers

PS: I've tried reinstalling. No change.

thomasMary commented 8 years ago

+1 got the same now, it was working perfectly before.

brtn86 commented 8 years ago

Glad to hear it's not just me.

My code works on iOS btw.

gitawego commented 8 years ago

could you please provide your cordova version, android platform version of cordova, and your android target version.

brtn86 commented 8 years ago

Cordova 5.4.0 android-minSdkVersion (as defined in config.xml): 16 Actual Android version running on test device: 5.1.1

Please let me know if you require any other info. Thanks and keep up the great work!

thomasMary commented 8 years ago

cordova-android: 5.1.1 android-minSdkVersion=15 android-targetSdkVersion=22 Android version ( on device ): 6.0 and 5.1.1

holmberd commented 8 years ago

I'm experiencing the same problem with cordova-android: 5.1.1 Tried reverting the head back feb but no success. Thanks.

This only happens in Crosswalk, building for Android WebView works but that comes with it's own problems.

brtn86 commented 8 years ago

Hey gitawego, do you have any news or a timeline on this? Cheers

holmberd commented 8 years ago

Tried building it with Cordova 5.4.1 for Android 5.1.1 but no dice.

bennerhq commented 8 years ago

have the same issue (works perfect on iOS) - just updated to Cordova 6.1.0.... Any solution, please? ;)

gitawego commented 8 years ago

please use master version of cordova-plugin-crosswalk-webview if you wanna use this plugin in master and v0.1.5 because the crosswalk's feature onMessage is not yet available in npm. please try this:

cordova plugin rm cordova-plugin-crosswalk-webview
cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
cordova clean

then try to build your project. it should resolve the problem.

holmberd commented 8 years ago

Got it running with v0.1.4 on Cordova and Android 5.1.1 with Crosswalk 1.4.0

bennerhq commented 8 years ago

perfect! brilliant! it' works! thanks a million! ;)

brtn86 commented 8 years ago

Great, thanks for looking into it ! Will try that next week. Cheers

antony-k1208 commented 8 years ago
npm install -g cordova@5.4.1
cordova plugin add https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
cordova plugin add https://github.com/gitawego/cordova-screenshot.git#v0.1.4

works for us in IOS and in Android without any issues

brtn86 commented 8 years ago

yup, I can confirm this as well. Many thanks for your help!