phonegap-plugins

Planning a cordova camera plugin with transparent overlay image

拜拜、爱过 提交于 2019-12-04 10:55:07
问题 I am writing and app which needs to show a transparent image over the camera, for example as a guide for composition. The app has to be shipped at least on iOS and Android. So far, I have found a plugin with a functioning iOS source (okstate-plugin-camera-overlay, available on Github), and a possibly working solution for Android. None of these is satisfying, both compile and run with a host of warnings and quirks. I think I want to plan a new plugin with this functionality and a clean and

PhoneGap missing plist.key

淺唱寂寞╮ 提交于 2019-12-04 10:52:49
问题 When I try and load upload my iTunes app installer to iTunes I relieve this error: Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data. Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription

accessing android internal storage with cordova file plugin

僤鯓⒐⒋嵵緔 提交于 2019-12-04 09:50:48
I'm trying to make an android app that, so far, is using the native voice recorder to record audio. The path for that is the Sounds file in /storage/emulated/0/Sounds Now the app is using the File Transfer cordova plugin. The root for that is /data/data/thisAppDirectory and requestFileSystem is using this as the path. Is it possible to go up a directory with the file system to get to the sounds folder? Yes here we go! You have to utilize cordova file-transfer plugin, like so: window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, function(fs){ fs.root.getFile("'"+audioData[0].name+"'", {create

Plugin not found, or is not a CDVPlugin. Check your plugin mapping in config.xml

时间秒杀一切 提交于 2019-12-04 09:28:38
问题 I have declared my plugin file for iOS inside plugin.xml like so: <config-file target="config.xml" parent="/*"> <feature name="CDVOP"> <param name="ios-package" value="CDVOP"/> </feature> </config-file> <header-file src="src/ios/CDVOP.h" /> <source-file src="src/ios/CDVOP.m" /> In the plugin JavaScript file I have this function which I later call from the JavaScript app showCatPictures: function(interval) { exec(null, null, 'CDVOP', 'showCatPictures', [interval]); }, I am running the app that

Disable zoom buttons in Phonegap's inappbrowser

匆匆过客 提交于 2019-12-04 08:20:50
After hours of searching and trying different things I'm close to give up. I want to open an external URL in the inAppBrowser that is now included to the Phonegap Build. I remove the address bar with location=no (also tried toolbar=no , but it didn't do anything), however the zoom (+ and - buttons) that appears whenever you scroll the page won't go away. I can't find a way to disable it, but maybe I overlook something? I'd just use the pinch zoom, so I don't see the reason to have these ugly buttons on top of the page (which is designed specifically for this app). So is there a way to disable

FileSystem on Cordova 3.4.0 fails “Could not create target file”

六月ゝ 毕业季﹏ 提交于 2019-12-04 08:19:56
I recently upgraded my iOS Cordova project from 2.7.0 to 3.4.0. After upgrading filesystem access is broken. (seems to work in the simulator though?) I get an error message stating "Could not create target file", I googled around and thought to change my "fullpath" to "toURL()" but to no avail. I really don't know what to try next? here's my download code window.requestFileSystem( LocalFileSystem.PERSISTENT, 0, function onFileSystemSuccess(fileSystem) { fileSystem.root.getFile( "dummy.html", { create: true, exclusive: false }, function gotFileEntry(fileEntry) { var sPath = fileEntry.toURL()

Plugins are not always added after cordova add platform android and iOs

被刻印的时光 ゝ 提交于 2019-12-04 08:13:15
问题 I need to run ionic platform add android/iOs few times to get the desired result. Sometimes plugins are added after first run, but usually I have to wipe out the plugins and platform directories and re-run adding the platform cycle few times until all plugins are added to android folder. Did anyone else experienced same problem and if yes - what is the resolution? if any ... thanks in advance 回答1: I've experienced some similar problems myself. Try reseting your ionic project: ionic state

Remove Title Bar Phonegap

浪子不回头ぞ 提交于 2019-12-04 08:01:34
How to remove the title bar that is showing for a second or so at the start of the application in phonegap build? I tried fullscreen as showed in Phonegap remove title bar at start and its working, the app is full screen but the title bar stil shows up for a second or so at the start of the app. When buildin locally I can remove the title bar form manifest.xml with the command android:theme="@android:style/Theme.NoTitleBar"> How can I completely remove the title bar from phonegap build? I solved it by adding these lines to the config.xml <gap:config-file platform="android" parent="/manifest">

Timer Task rung in background Javascript or Cordova App

自古美人都是妖i 提交于 2019-12-04 07:36:57
I'm looking forward to implement reminder application using cordova. I'm looking for a posibility to implement background task using javascript. Even the application is not active it should run in background. Is this task possible with java script or Do I need to develop a plugin using Cordova (Android & IOs) Chinthaka Devinda I believe it is not possible to do background work when the app (browser is not active) so I found a great library for cordova https://github.com/katzer/cordova-plugin-local-notifications I did not found ways to manage background tasks using javascript. Here are few

Local Notification repeated every day in PhoneGap Android

折月煮酒 提交于 2019-12-04 06:59:13
I am trying to send notifications everyday from my app using LocalNotification plugin that I found at github. I have the following code which sends a notification as soon as the application is started. var notification = cordova.require("cordova/plugin/localNotification"); document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { alert('device ready'); var id = 0; id++; newDate = new Date(); newDate.setUTCHours(1,30,1); notification.add({ id : id, date : newDate, message : "Your message here", subtitle: "Your subtitle here", ticker : "Ticker text here",