cordova-4

Can't add crosswalk with ionic cli 1.3.2

南楼画角 提交于 2019-12-21 14:05:15
问题 I cloned an existing ionic project from git. I have ionic 1.3.2 and cordova 4.2.0 . After cloning, i cd ed into the directory and did an ionic browser add crosswalk . It says that crosswalk was added successfully. Then when i try to do ionic run android , it says No platforms added. So i do a ioinic platform add android , which gives me this error: Failed to install 'org.apache.cordova.engine.crosswalk':CordovaError: Plugin doesn't support this project's cordova-android version. cordova

Location permission alert on iPhone with Cordova

帅比萌擦擦* 提交于 2019-12-17 16:54:16
问题 I'm working on a cordova app on which I have to locate the user latitude and longitude. Using the geolocation plugin, it works fine on android devices but it display an alert asking for permission from user in iOS . When I used the simulator I get this alert message: Users/user/Library/Developer/CoreSimulator/Devices/783A2EFD-2976-448C-8E4E-841C985D337D/data/Containers/Bundle/Application/EFC846BB-4BA3-465C-BD44-575582E649FC/app_name.app/www/index.html would like to use your current location.

How to move file to app directory using Cordova

那年仲夏 提交于 2019-12-07 23:25:15
问题 How can I move the image captured from my phone camera to the Cordova app directory? I want to move the file to, ideally with mkdir like function for new directories app/www/uploads/new The image location of the file is saved in a var: imagePath = file://emu/0/android/cache/something.jpg Any help is welcomed. I am using Cordova version 4.1.2 and installed the Cordova File Plugin. 回答1: I do think that the app/www directory is read-only since it contains your actual code and is packaged as .apk

How to move file to app directory using Cordova

可紊 提交于 2019-12-06 12:27:32
How can I move the image captured from my phone camera to the Cordova app directory? I want to move the file to, ideally with mkdir like function for new directories app/www/uploads/new The image location of the file is saved in a var: imagePath = file://emu/0/android/cache/something.jpg Any help is welcomed. I am using Cordova version 4.1.2 and installed the Cordova File Plugin. Roope Hakulinen I do think that the app/www directory is read-only since it contains your actual code and is packaged as .apk . Why would you need it there though? It is still since it is on disk. If you want to copy

Can't add crosswalk with ionic cli 1.3.2

大城市里の小女人 提交于 2019-12-04 05:20:51
I cloned an existing ionic project from git. I have ionic 1.3.2 and cordova 4.2.0 . After cloning, i cd ed into the directory and did an ionic browser add crosswalk . It says that crosswalk was added successfully. Then when i try to do ionic run android , it says No platforms added. So i do a ioinic platform add android , which gives me this error: Failed to install 'org.apache.cordova.engine.crosswalk':CordovaError: Plugin doesn't support this project's cordova-android version. cordova-android: 3.6.4, failed version requirement: >=4.0.0-dev`. ionic platform add android@4.0.0-dev returns

Location permission alert on iPhone with Cordova

折月煮酒 提交于 2019-11-28 01:40:35
I'm working on a cordova app on which I have to locate the user latitude and longitude. Using the geolocation plugin, it works fine on android devices but it display an alert asking for permission from user in iOS . When I used the simulator I get this alert message: Users/user/Library/Developer/CoreSimulator/Devices/783A2EFD-2976-448C-8E4E-841C985D337D/data/Containers/Bundle/Application/EFC846BB-4BA3-465C-BD44-575582E649FC/app_name.app/www/index.html would like to use your current location. I have seen topic talking about this problem like: this and this but none of the provided solutions