cordova

Unable to open a PDF file locally using a custom Cordova Apache plugin

萝らか妹 提交于 2020-01-17 05:07:51
问题 I tried to create a Cordova plugin to open a PDF file in a hybrid application following some examples. I'm facing this error while running the app on Android simulator. logcat: [2015-10-25 20:43:10 - CordTestProjectCordTestAndroid] Conversion to Dalvik format failed with error 1 [2015-10-25 20:58:56 - CordTestProjectCordTestAndroid] Dx Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded [2015-10-25 20:58:56 -

MobileFirst 8.0 Direct Update failing after downloading the updates

家住魔仙堡 提交于 2020-01-17 04:40:06
问题 I am using MFP8 and my application is a Cordova based hybrid app running on Android platform (no native code only HTML, JS and CSS) In MFP8, according to documentation WL.connect() is not there anymore and calling an unprotected resource will not trigger Direct Update. So I created a secured method in my HTTP adapter and I call it. I also wrote a challenge handler (which basically does nothing just returns true,) and the adapter call is successful and rest of my application works fine. Note:

Cordova camera plugin not launching camera

人盡茶涼 提交于 2020-01-17 04:11:45
问题 I've created an Ionic app and I need the camera functionality so that a user can take a picture and send it to a webservice. I've followed the following guide by Ionic. Basically you just cd into your applicatoin cd myApp then you run cordova plugin add org.apache.cordova.camera and once the plugin has been installed, you can invoke it's functionality where ever in your app (because according to Cordova, navigator.camera is a global object). In my case I'm just doing it in one of my

Cordova camera plugin not launching camera

杀马特。学长 韩版系。学妹 提交于 2020-01-17 04:11:14
问题 I've created an Ionic app and I need the camera functionality so that a user can take a picture and send it to a webservice. I've followed the following guide by Ionic. Basically you just cd into your applicatoin cd myApp then you run cordova plugin add org.apache.cordova.camera and once the plugin has been installed, you can invoke it's functionality where ever in your app (because according to Cordova, navigator.camera is a global object). In my case I'm just doing it in one of my

values not inserting in sqlite database using cordova

我只是一个虾纸丫 提交于 2020-01-17 03:56:04
问题 I have created a form for inserting data from textbox into the database and when I run it in the browser I can see the table is created and values are inserted. I tried implementing the same using cordova and table getting created and values are not getting inserted.. Here is my coding .. document.addEventListener("deviceready", function() { var db=window.sqlitePlugin.openDatabase({name : "mydb"}); var createStatement = "CREATE TABLE IF NOT EXISTS login(id INTEGER PRIMARY KEY AUTOINCREMENT

Deferred, Jquery mobile statements into $.when callback

假装没事ソ 提交于 2020-01-17 03:52:05
问题 I am trying to make my app (which uses Jquery Mobile 1.4) able to run either as a Phonegap app (using Phonegap Build, not Xcode) or as a pure webapp on a standard browser by starting my js file like below. But none of the Jquery Mobile events are bound... Can you help me see why ? var deviceReadyDeferred = $.Deferred(); var jqmReadyDeferred = $.Deferred(); $(document).one("mobileinit", function () { console.log('mobileinit just fired'); jqmReadyDeferred.resolve(); }); document

Phone gap application close if i move to other folder

▼魔方 西西 提交于 2020-01-17 03:41:05
问题 I am making a application in phone gap cord-ova 2.7.0 Android OS specific with camera feature and social sharing feature. In my application when I choose image selection feature. Then it moves me to gallery folder and when I come back after selecting picture by pressing back button, my application stops. I am totally confused. Things I already tried: There is no mistake in camera event feature because if I select a picture fast and come back to application. Then it does not stops but if i

Multi user app login with Touch ID on iPad

拟墨画扇 提交于 2020-01-17 02:53:46
问题 Im looking into creating an iPad kiosk app to be used by multiple staff in store. I understand that IOS8 exposes Touch ID to apps - my question is, is it possible to use Touch ID to authenticate AND identify multiple users logging into an app? Not that it should matter too much but the app will be Hybrid/Cordova. 回答1: No you can not identify user, you can only authenticate a user. 来源: https://stackoverflow.com/questions/29695669/multi-user-app-login-with-touch-id-on-ipad

Ripple emulator failing to emulate

守給你的承諾、 提交于 2020-01-17 01:48:47
问题 I have been using Ripple via Visual Studio 2015 to debug my Ionic app but it has stopped working for me. I get a message saying that it looks like the zombie apocalypse has started and two options - "Wait" or "Fire". The "Fire" is supposed to purge Ripple's settings. Neither works. I created a new app using the Ionic tabs template, and it fails to emulate too, so I don't think the problem is in my app. Any advice on how I can get Ripple working again? Edit I opened the Javascript console

Impossible to pick video from gallery/library - phonegap/cordova

笑着哭i 提交于 2020-01-17 01:39:07
问题 I am using windows phone, cordova/phonegap. How is possible to pick a video from gallery as it was a picture? The official plugin seems to work for picture only. Here is the code: function getVideo() { var options = { quality: 80 }; options["sourceType"] = 0 | 2; options["mediaType"] = 1; navigator.camera.getPicture(onVideoSuccess, onFail, options); } var onVideoSuccess = function (fileuri) { console.log("fileuri " + fileuri); } var onFail = function (err) { console.log("onFail"); } This way