phonegap-plugins

How can I add a native view from a Cordova plugin

流过昼夜 提交于 2020-01-01 19:21:00
问题 I am developing a plugin with the latest version of Cordova (3.3). I need to add a native UIImageView to the Cordova view. If I have access to the project for example in the platform folder, I can add my view to the view instance belonging to CDVViewController . However, I am not sure how to access that reference from a plugin. Inside my plugin I have: @interface CDVCool : CDVPlugin @property (weak, nonatomic) UIImageView *nativeImageView; ... @end How can I initialize and render this view by

Adding Cordova (Phonegap) Plugins manually to existing android projects

Deadly 提交于 2020-01-01 16:38:45
问题 I'm trying to add additional Phonegap plugins (namely, the File plugin) to an existing android application that uses Phonegap. I've tried navigating to my project directory (in my workspace) and then run the command cordova plugin add https://theurlwhichworks.org/ It says the plugin is installing, and when I go to look in my workspace on my computer, there is a folder titled plugins, and inside, a directory called org.apache.cordova.file which means that the plugin (apparently) downloaded

Local Notification repeated every day in PhoneGap Android

怎甘沉沦 提交于 2020-01-01 10:42:55
问题 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 :

Local Notification repeated every day in PhoneGap Android

北城以北 提交于 2020-01-01 10:41:27
问题 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 :

iOS PhoneGap 1.7.0 + Barcode Scanning Plugin issue

我的梦境 提交于 2020-01-01 09:01:32
问题 Has anyone managed to get the BarcodeScanning plugin for PhoneGap to work on PhoneGap 1.7.0? Barcode Scanning plugin: https://github.com/phonegap/phonegap-plugins/tree/master/iOS/BarcodeScanner The issues is that the plugin is not getting set when its added.. I get the following when I call "alert(window.plugins.barcodeScanner);" "undefined" I am trying to isolate the point where the plugin is failing to get added and will update the question once I know more.. Thanks in advance for anyone

Facebook app settings on PhoneGap application

别等时光非礼了梦想. 提交于 2020-01-01 04:55:10
问题 I have a phonegap application that uses the main facebook-plugin for connecting. I'm also using the phonegap build to directly get the apk/ipa without generating an android/ios project. Inside the facebook for developers, however, I have to complete some settings for my application that seem to require more than the simple phonegap build. I saw some tutorial in generating the hash key for an android app, but, what should I complete into the "Class Name" field(the activity that facebook will

Multiple mail attachment - PhoneGap

别来无恙 提交于 2019-12-31 05:42:07
问题 Hi i am doing an app in phonegap which need to have multiple attachment but i am unable to have multiple attachment. Any solution for this. My code are as below: <html> <head> <script type="text/javascript" charset="utf-8" src="cordova.js"></script> <script type="text/javascript" charset="utf-8" src="emailcomposer.js"></script> <script type="text/javascript"> document.addEventListener("deviceready", deviceready, true); function deviceready() { console.log("Device ready"); } function

Defining package name regarding buildType in cordova android project

前提是你 提交于 2019-12-31 04:11:12
问题 How can I define the right package name regarding my buildType ? I have this command line to build : cordova run android --device --buildType=beta I have this hook (after prepare) which set the buildType from the command line : fs.appendFileSync( buildExtras, "ext.postBuildExtras = {\nandroid.buildTypes." + ( isRelease ? "release" : "debug" ) + ".applicationIdSuffix='." + buildType + "'\n}" ); but in AndroidManifest.xml packageName in platforms/android/ is not the right. Only if I change

User push notifications in cordova 3.3

孤街浪徒 提交于 2019-12-31 04:08:33
问题 I want to implement notifications in android using 3.3 cordova, I'm new at this. I have tried several tutorials but without success. Could explain a simple way to implement it step by step? Thank You 回答1: Cordova Push Notifications Plugin for Android, iOS and WP8 This plugin is for use with Cordova, and allows your application to receive push notifications on both Android and iOS devices. The Android implementation uses Google's GCM (Google Cloud Messaging) service, whereas the iOS version is

Push notifications with FCM on DevExtreme/Phonegap

走远了吗. 提交于 2019-12-31 03:57:31
问题 I developed my app with DevExtreme, a multiplatform tool based on PhoneGap. Now, I'm trying to use the to phonegap-plugin-push manage push notifications. My first, simple, goal is to send&receive some notifcations from FCM (Firebase Cloud Messaging). I prefer to start with Android, so, I set my Android app on FCM. Here, I took the sender ID. Following the docs, I modified the config.xml as below: <widget id="com.devexpress.apptemplate" version="1.0" versionCode="1"> <name>ApplicationTemplate<