cordova

Ionic: background geolocation

空扰寡人 提交于 2021-02-11 06:22:58
问题 I'm using Ionic & Firebase to create an Android application for geolocation. I used ngCordova.geolocation and I successfully get the device current location. My problem is that I need to continuously get current location, as long as the user doesn't turn off geolocation and callback a function every time the geolocation change, and test if the user is inside one of many circles in the maps. 回答1: Since you are already using the ngcordova.geolocation plugin, it has a method to keep tracking the

Pass data between pages

懵懂的女人 提交于 2021-02-11 05:30:42
问题 I'm working on a mobile app on phonegap, and I need to pass variables between pages exactly like : http://coenraets.org/apps/directory/jqm/index.html but my problem is that I can't use a php file. How can I do that ? Thank you :) I just tried the LocalStorage which is mentionned here : http://docs.phonegap.com/en/1.6.1/cordova_storage_storage.md.html#localStorage but it doesn't work : here's my code : Page1 : $(data).find("Book").each(function () { var temp = $(this).find("name").text(); var

Cordova error : HTTP error 404 retrieving version 3.6.3 of cordova for www

女生的网名这么多〃 提交于 2021-02-10 19:58:23
问题 i am learning cordova. i am on ubuntu 14.04 LTS and cordova version installed on my machine is 4.3.1 . i am trying to create simple project using command cordova create MyApp but i am getting below error Creating a new cordova project with name "HelloCordova" and id "io.cordova.hellocordova" at location "/home/sanjay/Desktop/MyApp" Downloading cordova library for www... Error: HTTP error 404 retrieving version 3.6.3 of cordova for www at Request._callback (/usr/share/cordova-cli/node_modules

Cordova - download with direct link

情到浓时终转凉″ 提交于 2021-02-10 19:32:04
问题 I want a direct download from an external link in my project. however, when I click the link, Chrome, Explorer browser opens first. Then the file begins to descend. The platform and plugins I use in the project are below. I would like your support. <!DOCTYPE html> <html> <head> <meta name="format-detection" content="telephone=no"> <meta name="msapplication-tap-highlight" content="no"> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width

Cordova Image Picker Returning Temp URL From Cache Folder Where Images Are Not Present In It

北城余情 提交于 2021-02-10 18:21:47
问题 Not able to get the right image url when I select the images from the android device, I am able to get the temp image url from the cache where there is no original imaged copied to it. The Url which I got from the plugin looks like this. "file:///data/user/0/com.myapp.dev/cache/tmp_20180118_125700267959888.jpg" Is there any way to get the original image path or the temp url itself where the duplicate image is present in it? Plugin URL : https://github.com/wymsee/cordova-imagePicker.git Plugin

Cordova Image Picker Returning Temp URL From Cache Folder Where Images Are Not Present In It

女生的网名这么多〃 提交于 2021-02-10 18:20:45
问题 Not able to get the right image url when I select the images from the android device, I am able to get the temp image url from the cache where there is no original imaged copied to it. The Url which I got from the plugin looks like this. "file:///data/user/0/com.myapp.dev/cache/tmp_20180118_125700267959888.jpg" Is there any way to get the original image path or the temp url itself where the duplicate image is present in it? Plugin URL : https://github.com/wymsee/cordova-imagePicker.git Plugin

Ionic application targets API level 25 and must target at least API level 26

不想你离开。 提交于 2021-02-10 17:36:29
问题 I am creating an android application using ionic 3, when i attempt to upload to playstore i get an error that my app targets api 25, when i check my project.property the value of target =android-26, same with my androidManifest.xml the value of targetSdkVersion = 26, how do i set the target again. Below is my ionic info Ionic: ionic (Ionic CLI) : 4.4.0 (C:\Users\IETECH\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8 Cordova: cordova

Ionic application targets API level 25 and must target at least API level 26

拟墨画扇 提交于 2021-02-10 17:36:05
问题 I am creating an android application using ionic 3, when i attempt to upload to playstore i get an error that my app targets api 25, when i check my project.property the value of target =android-26, same with my androidManifest.xml the value of targetSdkVersion = 26, how do i set the target again. Below is my ionic info Ionic: ionic (Ionic CLI) : 4.4.0 (C:\Users\IETECH\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8 Cordova: cordova

Ionic application targets API level 25 and must target at least API level 26

浪尽此生 提交于 2021-02-10 17:35:39
问题 I am creating an android application using ionic 3, when i attempt to upload to playstore i get an error that my app targets api 25, when i check my project.property the value of target =android-26, same with my androidManifest.xml the value of targetSdkVersion = 26, how do i set the target again. Below is my ionic info Ionic: ionic (Ionic CLI) : 4.4.0 (C:\Users\IETECH\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8 Cordova: cordova

Check if a URL scheme is registered on iOS or Android in Cordova

谁都会走 提交于 2021-02-10 07:23:02
问题 I want to check if a particular app is installed and if it is installed, invoke it. AFAIK, the way to do it is to check if the custom url scheme of the app is registered and use that url to launch the app. Is there a way for me to do this in my Cordova app? To be very specific I want to check if the Google Maps application is installed on iOS and if it is, launch it with its custom url else show the default Apple maps. This url : https://developers.google.com/maps/documentation/ios/urlscheme