phonegap

Phonegap app performance vs native app performance

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: we are looking at getting a barcode scanning application built. We are considering using PhoneGap but our only worry is speed. All the application will do is just scan a barcode and check a server to see if it's valid or not. The application uses the camera very intensely to scan the barcode via an image. My main question is, will scanning via phonegap be just as fast as a native app? Speed is really important as the user will have to scan multiple barcodes very quickly. 回答1: Phonegap uses the same native APIs, it just abstracts

phonegap Class not found at file:///android_asset/www/cordova-2.0.0.js:938

匿名 (未验证) 提交于 2019-12-03 08:41:19
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i try to use this plugin and followed the instruction given in the readme.md file. 1)here's my html file <!DOCTYPE HTML> <html> <head> <title>TryMakan Video</title> <link rel="stylesheet" href="style.css" /> <script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script> <script type="text/javascript" charset="utf-8" src="video.js"></script> <script type="text/javascript"> function playVideo(){ window.plugins.videoPlayer.play("http://www.trymakan.my/wp-content/uploads/2011/09/NASI-AYAM-BEREMPAH-KAJANG.mp4"); } </script> <

How to make phonegap window.location.href not launch Chrome on Android

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've got a phonegap app. On deviceReady I set window.location.href to some other URL. This works great on iOS 8.3 but on Android 5.0.1 I get asked if I want to open it in Chrome and then it's opened in Chrome instead of my app. Is there way to get the URL to open in the app (as in replace the current page). Yes I know that's not best practice , a one page app is better, blah blah blah but that doesn't fit my use case at the moment. 回答1: If you are using cordova 5 (or above) with the android platform 4.0.0 (or above), have a look at

Phonegap Cordova call javascript functions from Objective-C

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am facing some Objective-C lackiness of knowledge in my PhoneGap App. I have a library that I need to implement in Objective-C. This Library has some callbacks that I receive in a delegate Class ( called CCController ) : [ MyLib sharedInstance ]. delegate = self ; This Class is instanciated in the AppDelegate.m like this : CCController * myClass = [ CCController alloc ]; [ myClass init ]; Then, when my Lib sends events, the functions in my CCController are called. I need, at this point, to call my Javascript functions with a

Phonegap/Cordova facebook login not working when already connected

匿名 (未验证) 提交于 2019-12-03 08:28:06
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm developing and HTML5/CSS/Javascript PhoneGap app that should work as native app for android and iOS and is compiled using the PhoneGap Build service. The app uses Facebook login. The login is done through the JAVASCRIPT Api. So I have this simple HTML page: <!DOCTYPE html> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=no" /> <meta name="msapplication-tap-highlight" content="no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link href="style.css" rel=

PhoneGap - target-densitydpi on viewport

匿名 (未验证) 提交于 2019-12-03 07:50:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm creating a app for Android and iOS using PhoneGap. After creating the "HelloWorld" app from PhoneGap's template I could see the target-densitydpi=device-dpi on the viewport by default . Okay, that's fine for now but I decided to run some tests with JQuery Mobile UI and they do not use target-densitydpi on the viewport (by the way if I do, the website should look very small on high dpi devices). Since I need the images of my app to look great at low and high resolution devices, I decided to run some tests on my Galaxy S4. First, target

Phonegap:After build transform and perspective CSS properties are not working?

匿名 (未验证) 提交于 2019-12-03 07:36:14
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am making an app using JQuery mobile. For swipe events i included one library.By using that i am able to use swipeleft,swiperight,swipeup and swipedown events. I have tested my app in android 4.0,4.1,4.2 and chrome browser of android 4.4.It works . CSS #joy_div { perspective: 500px; } button { margin: 10px 0 0 0; } .left, .right, .down, .up, .reset { transition: transform 0.5s ease; transform-origin: 50% 50%; } .left { transform: rotateY(-40deg); } .right { transform: rotateY(40deg); } .up { transform: rotateX(-40deg); } .down { transform:

Sencha Touch开发一些需要注意的地方

喜欢而已 提交于 2019-12-03 05:06:50
Sencha Touch开发一些需要注意的问题 如今Sencha Touch已经升级到2.4了,功能更加强大,性能也有所提升。 但由于一些功能的改进,文档并没有及时更新,导致开发时会遇到一些困难。 结合我使用的经验总结一些需要注意的地方,希望能帮助大家。 ------------------- Sencha Touch的开发流程 下载SDK,安装Sencha Cmd。 创建项目: sencha generate app MyApp ../test 打包项目(压缩,便于部署) sencha app build 由cmd生成的项目会自动加载类库文件,文件太多,导致等待时间过长, 可以直接引入resources/css/sencha.css和sencha_touch_all.js来提高速度, 但打包时需要还原,否则会出错 根目录下的app.js是程序的入口文件,代码如下所示: Ext.application({ name: 'MyApp', //The name is used to create a single global namespace for your entire app requires: [ 'Ext.MessageBox', 'Ext.navigation.View', 'Ext.dataview.List', 'Ext.plugin.PullRefresh',

How to convert php & jqueryMobile application to apk file

寵の児 提交于 2019-12-03 03:47:27
I made an application with PHP & jQuery mobile, and now I'm looking for how to convert this application to an apk file using PhoneGap. Is it possible to do this? And are there any tutorials to help me learn how to do it? This is a fast a simple way to do it, it is better if you extended to make more real life usage: 1- download phonegap 2- Build your first app using this tutorial or using the phonegap how to get stared 3- once you have that let's go server side.. we need a API, the simplest way to do this is like this: <?php header('Access-Control-Allow-Origin: *'); header('Cache-Control: no

Beep not working when phonegap app is in background on iOS

匿名 (未验证) 提交于 2019-12-03 03:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I’m working on the iOS version of my phonegap-based navigation app. My app tracks the user’s location around a walk route using GPS and alerts the user using audio (navigator.notification.beep) and tactile (navigator.notification.vibrate) feedback when they reach a location at which there’s new instructions for them to follow. When my app is running in the foreground, both the audible beep and the vibration fire on reaching the geographic location but when the app is paused in the background, either by pressing the power button to turn the