cordova

how capturing geolocation with device offline - cordova

余生颓废 提交于 2020-12-05 05:21:44
问题 I am developing an application using the cordova and found a need to take the data of latitude and longitude of the User, but my application will be used offline (without internet access). I'm with two questions: 1 - How to check if the unit is active GPS or not? 2 - How I can get the latitude and longitude Offline without internet connection? It's possible? 回答1: I´ll try to answer you: 1.- There you have the way to use PhoneGap GeoLication API to check location, and if GPS is enabled. Check

how can cordova open app from http or https url?

风格不统一 提交于 2020-11-30 06:38:05
问题 I found many answers for a custom URL-Scheme like this ( mycoolapp://somepath ). This plugin for example adds a custom URL-Sheme.* But I don't want a custom URL-Scheme, I want a "normal" URL like this ( http://www.mycoolapp.com/somepath ). If you open this in you Browser or click on a Hyperlink for example, then it should ask you to open my app (like google maps does it). This question maybe already has an answer, but i can't find it. If you don't know what I mean, that's how it should look

Cordova Facebook Login - Sudden Failure on Oct 1st 2020

夙愿已清 提交于 2020-11-29 19:12:40
问题 We are using cordova-plugin-facebook4 to manage Facebook login within our Cordova apps. Facebook login suddenly started failing today (Oct 1st 2020). When calling the facebookConnectPlugin.login, it keeps returning this error: "Facebook error: Caught exception: (#200) Missing Permissions" It has been working fine all the while, and our app is authorized for those permissions. This is the code used: facebookConnectPlugin.login(["email","public_profile","user_birthday","user_location"],

Why is jQuery Ajax not working in Cordova iOS app

徘徊边缘 提交于 2020-11-29 10:02:22
问题 I am building a Cordova app that uses jQuery Ajax to upload images to our server. The uploads were working for a while on both Android and iOS, then after a while they suddenly stopped working on iOS. Now, after a few seconds of trying to access a website, the request fails and I get an error message, which isn't much help. The error is like the following: readyState: 0 status: 0 statusText: "error" My code is: $.ajax("http://testapi.com/api", { data: submission, processData: false,

Why is jQuery Ajax not working in Cordova iOS app

回眸只為那壹抹淺笑 提交于 2020-11-29 10:01:30
问题 I am building a Cordova app that uses jQuery Ajax to upload images to our server. The uploads were working for a while on both Android and iOS, then after a while they suddenly stopped working on iOS. Now, after a few seconds of trying to access a website, the request fails and I get an error message, which isn't much help. The error is like the following: readyState: 0 status: 0 statusText: "error" My code is: $.ajax("http://testapi.com/api", { data: submission, processData: false,