phonegap

AJAX calls don't work on phonegap apk build

我是研究僧i 提交于 2020-01-05 07:18:08
问题 When using build.phonegap all of my ajax calls dont work, it works in website form and when using the app to connect to the server, but once i build the AJAX calls go through, but don't update on the app (if I click to the website i see the changes made on the apk, but not on the phone) My config.xml file is <widget id="com.phonegap.helloworld" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android.com/apk/res

Display App version in App setting on IOS

夙愿已清 提交于 2020-01-03 06:08:26
问题 How can I display the version of my Cordova App in the setting on iOS? My build.xml file starts with the following: <widget id="com.my-bundle-id" version="1.2.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" > But in the App Settings only the permissions section is displayed: How can I display the version section using Cordova? (I looked around and found only a plugin to programmatically get the App version but not how to populate the settings

Are Hybrid Mobile apps generally considered inferior to Native apps by developers in the tech industry?

谁说我不能喝 提交于 2020-01-02 03:31:27
问题 For a college project, my group was planning on making a cloud messaging app for Android. Initially we began development by studying and using Ionic Framework and Phonegap to create a Hybrid app. Based on what we had read and learnt so far what we understood was with Hybrid app development allows us to code with web technologies(HTML, CSS Javascript) which we were quite familiar with in far less time than building a Native app. It also had the plus of running on multiple platforms with very

PhoneGap开发环境搭建

主宰稳场 提交于 2019-12-31 20:50:03
PhoneGap开发环境搭建 项目中要用PhoneGap开发,了解了下基本规则,记录一下,以备后查。(只针对Android平台) 一、安装 在安装PhoneGap开发环境之前,需要先安装以下框架: 1. Java SDK 2. Eclipse 3. Android SDK 4. ADT Plugin 5. PhoneGap 说明: 1.Java SDK直接下载安装即可,没什么可说的,安装不了就是人品问题了; 2.Eclipse 也是直接下载安装,建议为classic版的; 3.Android SDK和ADT Plugin安装完成后,重启eclipse进入Window->Android SDK Manager进行选择要安装的Android开发框架进行安装 4.PhoneGap包不用安装,直接解压。 二、第一个PhoneGap项目 1.在eclipse中新建Android Project,名字神马的随便取吧; 2.在项目的目录下,建两个文件夹: /libs /assets/www 3.进入将刚刚下载并解压的PhoneGap包里Anroid目录,我们需要的资源都在这个目录下。 将phonegap-x.x.x.js这个js文件(具体名称视当时下载的版本而定)copy到/assets/www目录下, 把phonegap.jar文件copy到/libs目录下。

Phonegap 3.0 获取当前地址位置

两盒软妹~` 提交于 2019-12-28 00:13:53
新版本的cordova 3.0 中,使用官方的示例可直接获取当前手机的地理位置,前提是手机开启了gps,或可联网。 获取到的是经纬度坐标值等信息,可通过google api 实现通过经纬度获取当前地理位置名称。 google api 地址:http://maps.google.com/maps/api/geocode/json?latlng=经度,纬度&language=zh-CN&sensor=true phonegap 代码: <!DOCTYPE html> <html> <head> <title>Device Properties Example</title> <script type="text/javascript" charset="utf-8" src="cordova.js"></script><!--cordova 3.0+ --> <script type="text/javascript" charset="utf-8"> // Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false); // device APIs are available // function onDeviceReady() {

使用PhoneGap开发windows phone 7 应用(1)-初识PhoneGap

情到浓时终转凉″ 提交于 2019-12-27 14:55:26
windows phone 7允许使用silverlight和XNA开发原生的应用程序,两者都是非常成熟的框架,并且有功能强大的工具支持。那么为什么还要使用HTML5和 javascript来开发WP7的应用程序呢?个人认为是为了开发跨平台的移动应用程序,HTML5/javascript应用可以运行在 Android、IPhone、BlackBerry,现在也同样可以运行在WP7上。 HTML5应用程序的基本思想在于:你的本机应用程序仅仅是一个全屏幕的WebBrowser,承载你的JavaScript应用程序逻辑,你需要将你的HTML、javascript、css以及其它一些资源打包到一个XAP文件中,然后使用 WebBrowser的API在你的javascript代码和本机原生API之间传递消息,以访问手机的功能,如:camera和 accelerometer。 已经有不少哥们开发出了辅助HTML5应用程序开发的框架,我推荐其中的PhoneGap框架,顾名思义,该框架将会填充javascript代码和原生的手机功能之间的“沟壑”,作为一个开源项目,PhoneGap已经运行了很多年,目前已经支持多种手机,也就是说,可以使用同一javascript API访问Android、iPhone、黑莓和更多的手机中的功能。 PhoneGap入门 1: 下载 2:复制callback

Need example cordova-plugin-facebook4 for PhoneGap project

混江龙づ霸主 提交于 2019-12-25 09:35:14
问题 I added a in the file config.xml: <preference name="android-minSdkVersion" value="17"/> ... <preference name="phonegap-version" value="cli-6.5.0" /> ... <plugin name="cordova-plugin-facebook4" spec="1.7.4" source="npm"> <param name="APP_ID" value="XXXXXXXXXXXXXXX" /> <param name="APP_NAME" value="MyProg" /> </plugin> The application is already registered in facebook and it was indicated above instead of X... Please give an example of using the plugin - cordova-plugin-facebook4 for PhoneGap

config.xml not being read/sent when building from phonegap desktop

不羁的心 提交于 2019-12-25 01:27:44
问题 I'm trying to build an app with phonegap desktop and the developer app. Everything seems to be working apart from the preferences I've set in the config.xml file. I've set: <preference name="Fullscreen" value="true" /> <preference name="orientation" value="landscape"/> However the app always build with the status bar at the top of the screen and the orientation acting as if there has been no preference set. I've tried on a OnePlus 3T and a Samsung A3, both having the same issues. I assume

Phonegap Build - Error Plugin with id 'com.google.gms.google-services' not found

眉间皱痕 提交于 2019-12-25 00:21:31
问题 My build got failed if i include both push notification and google plus plugin. I am building the app using Phonegap Build. I have included push plugin as well as google plus plugin. There is a conflict between both plugins. Here is my config xml: <plugin name="cordova-android-play-services-gradle-release"/> <plugin name="cordova-plugin-googleplus" spec="5.2.1"> <param name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps.2445455956-8dfgs87asd5asd4a5sdasd4j"/> <param name="PLAY_SERVICES

跨平台移动应用开发利器:PhoneGap 2.0 发布!

China☆狼群 提交于 2019-12-24 18:04:15
  Adobe PhoneGap 团队近日在美国波特兰的年度 PhoneGap Day 上正式发布了 2.0 版本。 PhoneGap 是一个免费开源的开发框架,让 Web 开发人员能够使用熟悉的 HTML , CSS 和 JavaScript 构建跨平台的移动本地应用。   通过 PhoneGap 框架提供的 JavaScript API 能够以非常简单的方式调用移动设备的核心功能,包括地理位置,摄像头,加速器,通讯录,多媒体,文件和网络等功能。   借助 PhoneGap,你完全可以使用熟悉的 Web 开发技术写出移动 Native App,并发布到 Apple Store,Google Play 等各平台应用商店中。编写好的代码可以上传到云端服务器,使用云端编译功能编译成各种平台下的应用,支持 iOS,Android,Palm WebOS,Symbian,Blackberry,Windows Phone 和 Bada 七大平台。      最新发布的 PhoneGap 2.0 有以下改进: Cordova WebView - 集成PhoneGap,作为视图片段嵌入原生应用中。 Command Line Tooling (CLI) (Android, iOS and BlackBerry) - 命令行工具,为不同平台提供统一的项目创建,调试和模拟功能。 Enhanced