phonegap

Cordova error: Requirements check failed for JDK 1.8 or greater — am using java 9 [duplicate]

一笑奈何 提交于 2019-12-12 04:09:26
问题 This question already has answers here : Cordova : Requirements check failed for JDK 1.8 or greater (30 answers) Closed 2 years ago . While trying to build an android apk with cordova, I get the following error: Error: Requirements check failed for JDK 1.8 or greater What can I do to resolve this error? 回答1: Uninstall jdk 9 and then install jdk 8. Maybe cordova is not able to detect jdk 9 >jdk 1.8 来源: https://stackoverflow.com/questions/46379406/cordova-error-requirements-check-failed-for-jdk

Cordova or Phonegap Http Requests and Same Origin Policy Problems

痞子三分冷 提交于 2019-12-12 03:35:19
问题 As so many others I have the problem with a RESTful service we are calling. This service as so many others has an ORIGIN check. Using Cordova & Ionic doing the request from android app set the origin to file:// which is good for browser cors check but not good for the service, they doesn't allow this schema for origin. As others the allow only empty origin or the same origin. On many posts I read the wrote you can handle this with whitelist plugin or with CSP. But I think this absolutly

How to upload a file to Dropbox using JS SDK?

試著忘記壹切 提交于 2019-12-11 22:56:05
问题 I am not sure whether to read the file as as Array Buffer or as a dataURI or as a binary stream. Which would be better? Also, won't these methods be memory intensive and make the app/device slow, especially when uploading big files like 150mb or so? And yet another thing is whether the file will be "openable" as it was originally? Example : If I read a .zip file using one of the methods and then download the file later, will it still open as ZIP? I am partly confused because of this analogy:

Cordova CLI Windows - ENOENT error when executing cordova platform add android

心不动则不痛 提交于 2019-12-11 16:58:53
问题 I installed openssh, and I suspect that removes my Path from environment variables. Since then, I got this following error. What caused this? cordova info outputs this: Node version: v6.12.3 Cordova version: 7.0.0 Config.xml file: <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description> A sample Apache Cordova application that responds

Phonegap shows error - “Oh geez. Your build failed.”

送分小仙女□ 提交于 2019-12-11 16:03:25
问题 I am using Phonegap Build for my Android app and am running into the following error when compiling: Oh geez. Your build failed. Click the "Log" button above to view the compile log. If you need help diagnosing the issue, you can post to the support forum with your App ID. XML <?xml version="1.0" encoding="utf-8" ?> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res/android" id = "kmcrs.mobibbhvle.app"

GET JSON and build HTML table on a different page (Phonegap + Framework7)

為{幸葍}努か 提交于 2019-12-11 15:57:56
问题 I am building a mobile app using Framework7 that scans a QR code (using this Phonegap plugin) that contains a JSON URL and GETs the relevant data. The data is then used to generate and populate a table. This is what my code looks like: $$(document).on('page:init', '.page[data-name="scanner"]', function (e) { $$('.page-content').find('#scanCode').on('click', function (e) { cordova.plugins.barcodeScanner.scan( function (result) { app.request.json(result.text, function (data) { var tableHtml = '

Is there an easy way to get phone's compass heading accuracy in phonegap?

感情迁移 提交于 2019-12-11 15:19:01
问题 I am building an app for Android and ios with phonegap that includes a compass. Therefore I am using the w3c api as explained in this article My problem is that the use of the compass is critical in my application so I need to make the user aware that his phone's compass has a problem whenever it is poorly calibrated. I know for a fact that you can check the compass accuracy with native code in Java for Android. I don't know anything about Swift and ios. My question is : Would you know any

ajax jquery code does not work on android -Phonegap-

為{幸葍}努か 提交于 2019-12-11 14:53:12
问题 I created a mobile application using the phonegap framework and it worked well in ios and android but the problem is that the ajax jquery code does not work on android Thank you for helping me find a solution ajax jquery code $ (document) .ready (function () { $ .Ajax ({ url: "http://rest-service.guides.spring.io/greeting" }). then (function (data) { . $ ( '. Greeting-id') append (data.id); . $ ( '. Greeting-content') append (data.content); }); 回答1: When you are working on app which wants to

Google Plus Plugin and Push Notification Plugin conflict on PhoneGap Build, Build failed

一曲冷凌霜 提交于 2019-12-11 11:14:47
问题 I need to use google plus plugin along with the push notification plugin <plugin name="cordova-plugin-googleplus" source="npm" spec="5.2.1"></plugin> , but using both of them build gives error : Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] > For input string: "+" When I use 5.3.0 of googleplus plugin then it works and build succeeds, but then on sending notifications a pop up appears in my mobile &saying App has stopped ...Close App. UPDATE : config.xml

PhoneGap: Uploading Pictures To Local Folder

假如想象 提交于 2019-12-11 10:57:16
问题 I am using the following code to upload a picture in local folder. It works fine when i use server path for file uploading. But fails when using the localhost path. It returns 'error :3'. My intention is to store the image in local folder and use it in future while synchronizing online. I am using npm: '3.10.10' cordova: '7.0.1' JS: $(document).ready(function() { $('#getPhoto').click(function(e) { sessionStorage.removeItem('imagepath'); navigator.camera.getPicture(onSuccess, onFail, { quality