cordova

Android console displays: W/art: Attempt to remove non-JNI local reference

雨燕双飞 提交于 2020-01-12 04:03:05
问题 I've just setup my first Cordova project and installed OneSignal push notifications. This is all working as I expect, however the Android Developer Tools are showing this in the console: W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference,

How can I load an image onto the HTML5 Canvas using Phonegap

♀尐吖头ヾ 提交于 2020-01-12 03:56:11
问题 Trying to load an image into onto an html5 canvas and then running the html5 on Android using Phonegap. Here is my HTML. <!DOCTYPE HTML> <html> <body> <canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;"> Your browser does not support the canvas element. </canvas> <script type="text/javascript"> var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); var img=new Image() img.src="img_flwr.png" cxt.drawImage(img,0,0); </script> <img src="img_flwr.png"/

Minifying code for PhoneGap App?

江枫思渺然 提交于 2020-01-12 02:31:17
问题 I am currently starting to build an PhoneGap application, I know the advantages of minifying code for browsers already. However, I was wondering if it was worth minifying my HTML, JavaScript and CSS code for my PhoneGap application? I would understand that the code run faster potentially faster? Also if that is the case is there an application that will do it all for me? (When I say do it for me I mean take a directory on my machine and minify the code saving a .min.js version? or is it a

Conditionally block scrolling/touchmove event in mobile safari

时光毁灭记忆、已成空白 提交于 2020-01-11 19:42:22
问题 iOS 5 now allows native overflow: scroll support. What I'd like to do is disable the touchmove event for everything except elements that have the 'scrollable' class or their children. But I can't seem to get it to work; this is what I've been working with below: <html> <head> <style> .scrollable { height: 5em; overflow-y: scroll; -webkit-overflow-scrolling: touch; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script> // doesn't seem to

Automatic Testing for Cordova/Phonegap Webview on Android

坚强是说给别人听的谎言 提交于 2020-01-11 18:32:47
问题 I'm currently looking for a solution to test Android Apps automatically, native Android apps as well as hybrid Cordova/Phonegap apps. The UI Automator from Google looks pretty fine, but can not deal with WebViews, which makes it unusable for me. Then I found the promising automation framework Appium based on Selenium, which should also be able to deal with hybrid apps, but I couldn't get it to work with WebViews, it seems to not be implemented fully yet, as also several posts prove. After

Base64 video encoding - good\bad idea?

我是研究僧i 提交于 2020-01-11 15:50:07
问题 I'm working on a mobile front-end project using cordova, and the backend developer i'm working with insists that the media files (images/videos) should be transferred as base64 encoded in json files. Now, with images it's so far working. Although it freezes the UI for a few seconds, it can be deferred somehow. The videos however are so far a pain to handle, the length of a single/simple video being transferred is nearly 300,000 in length. It brings my poor laptop through a wild spin, and gets

Issues with Bindings: Calling base method on binding class calls override method. Leads to infinite recursion

守給你的承諾、 提交于 2020-01-11 14:06:22
问题 I'm working on a MonoTouch project that uses Cordova. I created a binding for Cordova (based on the one created by Scott Blomquist). I have been able to instantiate the classes fairly well without fail. When I try to extend them however, I run into issues. For example, if I merely try extend the CDVViewController, without even overriding anything, when we get to the code that instantiates this extended class, the system quietly exits with no error messages, and the following exit lines. The

Want to use https request in phonegap application on iphone

岁酱吖の 提交于 2020-01-11 13:25:34
问题 I am trying to call https request in phonegap iphone app using jquery's method getJSON(),though it work fine in normal safari,but in mobile safari,it gives error like Download Failed-Safari cannot download this file Please suggest me... Thanks 回答1: If I'm reading this right, I don't think it has to do with JSON. I'd suggest looking at what the URL is for the https request. I believe that, generally, that error is because you are trying to download a file type that is not supported on the

Android SoftKeyboardDetect: Ignore this event what does it mean?

拈花ヽ惹草 提交于 2020-01-11 12:04:41
问题 I see this debug message frequently in LogCat. When doing swipe or rotating the device for example. The emulator doesn't react to the events then. What does it mean? In need to test rotation on the emulator but on some versions, when I press CTRL F12 or CTRL F11 nothing happens (well, the device rotates as a whole but not the screen) and I see this message in log. I don't find anything with google either... Ok, it's PhoneGap specific. I found something in the source code of PhoneGap: /** * We

Android SoftKeyboardDetect: Ignore this event what does it mean?

只愿长相守 提交于 2020-01-11 12:04:06
问题 I see this debug message frequently in LogCat. When doing swipe or rotating the device for example. The emulator doesn't react to the events then. What does it mean? In need to test rotation on the emulator but on some versions, when I press CTRL F12 or CTRL F11 nothing happens (well, the device rotates as a whole but not the screen) and I see this message in log. I don't find anything with google either... Ok, it's PhoneGap specific. I found something in the source code of PhoneGap: /** * We