phonegap-plugins

Android: phonegap/cordova: switch full screen mode while app is running

浪尽此生 提交于 2020-01-12 10:46:10
问题 I want to switch between full screen mode and normal mode while my app is running. is there any phonegap plugin to do this for me (Android) ? if no, Please tell me how can I switch between full screen and normal in java, called in javascript. 回答1: It's possible to do using this plugin: https://github.com/mesmotronic/cordova-plugin-fullscreen it has functions AndroidFullScreen.showSystemUI, AndroidFullScreen.leanMode, AndroidFullScreen.immersiveMode to do the switch. 回答2: Try the following

Phonegap : Camera view with background image

久未见 提交于 2020-01-11 06:10:51
问题 I am using Phonegap with Sencha Touch to get camera functionality. But instead of the default camera view, I want a picture with transparent background to be overlaid upon the live camera view. Similar to below example where a dinosaur image has been overlaid upon the camera view image. Can you tell me whether this feature can be achieved with Phonegap or in any other way? 回答1: It can be achieved but it requires a bit of native code and a simple trick. You need to set the phonegap container

Phonegap : Camera view with background image

淺唱寂寞╮ 提交于 2020-01-11 06:10:49
问题 I am using Phonegap with Sencha Touch to get camera functionality. But instead of the default camera view, I want a picture with transparent background to be overlaid upon the live camera view. Similar to below example where a dinosaur image has been overlaid upon the camera view image. Can you tell me whether this feature can be achieved with Phonegap or in any other way? 回答1: It can be achieved but it requires a bit of native code and a simple trick. You need to set the phonegap container

Class not found for plugin installed by plugman

泪湿孤枕 提交于 2020-01-07 04:51:28
问题 I have added a plugin to my cordova application using the following command plugman install --platform android --project ./platforms/android --plugin https://github.com/zendrive/zendrive-sdk-phonegap-plugin.git But, if I run cordova run android --device The config.xml file of android project automatically changes to remove the zendrive-sdk-phonegap-plugin and I receive "class not found" error when using the plugin api from code. NOTE: The apk generated by phonegap cloud build has the same

Multiple Images upload in android asynchronously using phonegap

那年仲夏 提交于 2020-01-07 02:36:10
问题 I have an issue with multiple images upload to php server. The code given below works fine for android 2.x versions, but the same code doesn't work for android 4.x and above. I have googled and found out that the data posting has to be done asynchronously by AsyncTask. But I have no clue about how it has to be done via phonegap(calling of async task). Here I have my code : package com.mymedlinks.hybrid; import java.util.TimeZone; import org.apache.cordova.api.Plugin; import org.apache.cordova

PhoneGap - Jsonp Error 404 Not Found on call

霸气de小男生 提交于 2020-01-07 02:03:11
问题 Here is a commun error, but every solution give on Stack didn't solve my problem. I have a phonegap app, my jsonp call send me a 404 error Here is the function of the controller (angularjs) : $scope.pullContent = function() { $http.jsonp($scope.yourAPI+'/?page='+$scope.pageNumber+'&callback=JSON_CALLBACK').error(function(jqXHR, textStatus, errorThrown){ alert("### ERROR ###"); alert(textStatus +' // '+ errorThrown); alert($scope.yourAPI+'?page='+$scope.pageNumber); }).success(function

Access to cookies or WebBroswer class from phonegap plugin running windows phone

∥☆過路亽.° 提交于 2020-01-06 12:41:23
问题 I have to manage cookies (delete it) from my phonegap app running on a windows phone 8. I've created a C# phonegap plugin. On the web, I've found that WebBroswer class can be the way to delete the cookies of my webView. But I cannot find the exact way to access to this class from my phonegap plugin. The phonegap plugin in windows phone 8 extends the "BaseCommand" phonegap class. Any help will be really appreciated. Julien T. 回答1: This might be what you're looking for: http://github.com

iOS 11 Status bar pushing the view down by 20px

ⅰ亾dé卋堺 提交于 2020-01-06 04:29:47
问题 I'm facing an issue with the iOS 11 status bar pushing the view down on first launch, but when i hit an input, it pushes the view back to the normal state. I added viewport-fit=cover but it didn't fix the issue. I'm using cordova-plugin-statusbar <plugin name="cordova-plugin-statusbar" spec="~1.0.1" /> Screenshots of the issue then when pushed back to normal: I'm using Framework7 for the UI, and some plugins: cordova-plugin-camera 2.4.1 "Camera" cordova-plugin-compat 1.2.0 "Compat" cordova

Phonegap 3.3.0 cannot add any plugin

家住魔仙堡 提交于 2020-01-06 04:03:12
问题 I am trying to add barcodescanner plugin to an Phonegap 3.3.0 project. Steps to reproduce: $ cordova create app de.app.name "app-name" $ cd app $ cordova platform add ios $ cordova plugin add com.phonegap.plugins.barcodescanner Fetching plugin from "com.phonegap.plugins.barcodescanner"... Starting installation of "com.phonegap.plugins.barcodescanner" for ios Error during processing of action! Attempting to revert... /usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 throw e; ^ Error:

Cordova 3.x forcing screen orientation at run-time IOS [duplicate]

£可爱£侵袭症+ 提交于 2020-01-06 04:01:22
问题 This question already has answers here : PhoneGap - Forcing Landscape orientation (5 answers) Closed 4 years ago . I'm building an app with cordova where forcing screen orientation at runtime on certain pages is crucial. I found a plugin com.phonegap.plugins.OrientationLock that works very well on android devices but I can't find any solution for IOS... Have anyone solved this issue? Thank you 回答1: Updated response : I just found a plugin that enables this: https://github.com/Adlotto/cordova