phonegap-plugins

Facebook Chatheads in a Phonegap app

僤鯓⒐⒋嵵緔 提交于 2019-12-11 01:07:43
问题 We already have a production Phonegap hybrid app. A new requirement is to implement a facebook's chatheads like overlay but I haven't find any plugin or documentation talking about this potential use-case with Cordova. Is it possible to implement something like this using Phonegap? If I try the native implementation, Will I be able to link that with my Cordova app? 回答1: The Microsoft Ace plugin for Cordova provides APIs that allow for building features like this. There's sadly no

Cordova 2.7.0 PushPlugin “cordova cannot be resolved” and “ctx cannot be resolved”

人盡茶涼 提交于 2019-12-10 23:43:58
问题 What I've done.... Created the cordova project using ./create in the cordova-android bin Added PushPlugin via cordova-plugman Added cordova-2.7.0.jar to the /libs directory Cordova is complaining in PushPlugin.java that "cordova cannot be resolved" ...along with several other errors... (PushPlugin.java) Plugin cannot be resolved to a type (PushPlugin.java) Plugin cannot be resolved to a type (PushPlugin.java) cordova cannot be resolved (PushPlugin.java) Plugin cannot be resolved to a type

PhoneGap Capture Plugin Crashes Android

ε祈祈猫儿з 提交于 2019-12-10 22:38:40
问题 When I use the capture plugin it always crashes the app after taking the picture. When I click the Capture button, it opens the camera app, I take a picture, and click the check mark, then the app closes and says: "Unfortunately, HelloWorld has stopped." Then if I look in the gallery app, the photo is there. Is there anything I'm doing wrong? Or is there something wrong with the plugin? Here's what I did: I created a brand new phonegap 3.x (3.1.0-0.15.0 to be exact) project phonegap create

AsyncTask inside execute method of Cordova plugin not working properly

☆樱花仙子☆ 提交于 2019-12-10 22:38:20
问题 I am developing cordova plugin for the first time and stuck in the following issue. I have created a class extending CorodvaPlugin and override execute method as given . What I want is after the asynctask has completed it background task, response is returned to the JS and values are displayed on the HTML but whats happening sometimes values are displayed and sometimes not.Any help would be appreciated. @Override public boolean execute(String action, JSONArray args, CallbackContext

Do we need to upload cordova_plugin.js to phonegap build server?

蓝咒 提交于 2019-12-10 21:07:35
问题 I am very new to Phonegap. I am trying to build an application which require InApBrowser plugin. I know we should not upload cordova.js to PhoneGap Build server but I am not sure if we need to upload cordova_plugin.js to build server. I am asking this question because when I download the .ipa package and install it in iPhone and debug the application it says cordova_plugin.js not found. I am using cordova 3.6.3. index.html <body> <p>Hello, your application is ready!</p> <!-- Cordova reference

cordova plugin installation issue when using node script in hooks folder

不羁的心 提交于 2019-12-10 20:49:21
问题 Cordova 3.4 hooks is not installing mentioned plugin's properly in iOS . I am adding install_plugins.js into the folder project/project_root/hooks/after_platform_add which has the following code in it: #!/usr/bin/env node //this hook installs all your plugins // add your plugins to this list--either the identifier, the filesystem location or the URL // It can also be git url like "https://github.com/chrisekelley/AppPreferences/" var pluginlist = [ "org.apache.cordova.camera", "org.apache

How tell plugman that I want to update a file that may not be present?

拜拜、爱过 提交于 2019-12-10 20:26:24
问题 I wrote an android phonegap 3 plugin that starts an activity (the activity is part of plugin) and uses a native android UI. Now I want to follow the plugin specification to be able to install the plugin using the CLI. My plugin has resources in the xml files /res/values/attrs.xml, /res/values/colors.xml and /res/values/ids.xml My issue is that those files are not created by the platform add android command, so I can't use <config-file> to patch them. I don't want to use <source-file> because

how to test push notification in android phonegap?

Deadly 提交于 2019-12-10 20:19:41
问题 I downloaded the push notification sample project from MarkNutter Project and imported it as android project its working fine as of now I am able to register from device Since I do not have some server to send notification to device, How sould I test if the device is receiving some notifications? 回答1: There are some steps that maybe you haven't done yet: First you must register in Google APIs site, select Services: https://code.google.com/apis/console/ Turn the Google Cloud Messaging toggle

Enable appearence on Window after setFlags on Android/Cordova

荒凉一梦 提交于 2019-12-10 18:34:25
问题 I'm developing my first Cordova plugin as a means to learn Cordova better. I'm however stock and hope you guys can help with the last bits. The source can be found at https://github.com/dotnetCarpenter/cordova-plugins/tree/master/FullscreenPlugin The aim is to develop a full screen plugin which can toggle between states. As shown here at SO, it should only be three lines. requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

How to make a connection to PHP file on a Webserver using PhoneGap(Android app) in real time?

独自空忆成欢 提交于 2019-12-10 17:45:08
问题 The below given code works fine using a wamp server on localhost.It is calling a php file that connects to the MySql DB and returns data. However i am trying to build a mobileapp using PhoneGap. The below code is in a HTML file. My questions is how will my html file make a connection with the server using ajax once I upload it to phonegap and generate the .apk file. Since the below code just calls the getbustime.php file without any web server parameters. i have devloped my app in phonegap