I have successfully implemented image library PhoneGap app which company users use to view our company published photos. In there I have implemented a feature, when you click an hold on the image then the image will be saved on Camara Roll of the mobile device. For implementing that I used the Phonegap plugin Canvas2ImagePlugin
It was working fine. Recently, I have enabled image caching on the server (IIS 7.5 Output Cashing - added extension .png and .jpg ).
Then suddenly that feature stopped working. Further checking I have found that Canvas2Image plugin uses following method to get the image data from the URL. And after enabling Output caching, imageData is always empty.
var imageData = canvas.toDataURL().replace(/data:image\/png;base64,/,'');
Can anyone experienced this before? Can you please help me to resolve this?
Related
My problem
I am currently developing an electron (v4.2.10, I can't upgrade) application with the primary purpose of browsing on a specific homepage (using electron-navigation) and making their flash games playable.
I have included the Pepper Flashplayer (v32.0.0.156) for this purpose and so far it is all working well.
However when trying to print a page including a flash game it will print a blank page. Trying the same in my current versions of Chrome or Firefox (with current flash player) yields the same result, however in Edge it works.
What I've tried so far
I have no access to the actual pages of the site or any of the swf files
The pages with the swf files are http (I tried setting browserWindow web preference disableWebSecurity to true, no change)
I have tried different versions of the flashplayer
Screenshotting the page is sadly not an option
I have looked into the plugin nw-flash-trust but I am accessing an external source
When I downgraded electron to v3.0 it actually managed to print most of the display, which may point to it being related to the underlying chromium version
Does anyone have an idea how I can fix this? I have absolutely no knowledge of flash development itself. I would love to be able to print on v4.10 too. Many thanks for any help!
I am building my Apps with JavaScript using Cordova and Electron for mobile and desktop apps. In my App, I have a offline feature, where you can download content which is saved using localforage. It works great to show my images, audios, videos and so on.
However, I also have files in the app for users to download (zip, pdf, ...), by using the window.open command, which works as long as I'm using the file's url from the server. But when I use the offline feature and use the blob-url from my localforage, the app doesn't react at all to my onClick event. It doesn't open and also showing no errors in the console.
In the browser though it works just fine, whether it's the blob-url or server-url.
I first used window.open(src, '_blank');, but also tried to remove the _blank attribute with no luck.
Any help would be very appreciated! Thanks!
I am trying to run sample threejs project for VR using xampp local server in Samsung NOTE 4 device.In this phone, online threejs VR examples(https://threejs.org/examples/?q=vr#webvr_cubes) working fine,
but same example in our local server link(http://192.168.1.2/three.js-dev/examples/?q=vr#webvr_cubes) always returns "Your browser does not support WebVR".
Can any one give me suggestions or idea how to run that sample project using xampp local server
Thanks in Advance
At this time, WebVR is still an experimental feature (I assume you're using Chrome).
http://192.168.1.2/ is not seen as a trusted entity, hence experimental features are disabled.
However http://127.0.0.1 and https://threejs.org are allowed to use this feature.
To enable WebVR, go to chrome://flags/#enable-webvr and click Enable
If you want your users to be able to use WebVR today, you have to apply for Origin Trials by filling in this form.
Google will give you a token to add on your page. (Note that you will have to set up HTTPS on your server).
Alternatively, you can add a polyfill to make your VR work everywhere (not just in Chrome M59+).
(just include the polyfill before three.js)
I am using Cordova Plugin Inappbrowser to run my external website on device. In this external website I need to upload an Image (Gallery/Capture camera) or file on server. For this I have implemented HTML5 File API to make this feature run into my app too. I have tried various demo 1, demo 2 and tried this URL open into IAB to test; unfortunately they didn't work earthier inside my app. Whereas if I try to open these two demo in native browsers like Chrome, safari, firefox apps into my device these demo are allowing me to perform File API.
So can anyone help me to fix this issue........
I am using phonegap for the first time and attempting to get a simple image uploaded to my server. I am using the js from the Full Example in the docs (http://docs.phonegap.com/en/3.3.0/cordova_file_file.md.html#FileTransfer)
I am able to pull up the image gallery and select the image, but nothing is being uploaded to my server, and neither the success or failure callbacks are being fired.
I am not sure if it matters but I am using phonegap build and I am currently testing on iOS but this will eventually be on Android as well.
Any ideas?
after trying to manually run the functions through the debug console I realized that I had the file plugin but not the FileTransfer plugin installed. installing that appears to have fixed it.
The phonegap documentation is sorely lacking!