FAQ Database Discussion Community


VS 2015 RC - Trying to fetch local plugin from remote registry

node.js,npm,cordova-plugins,visual-studio-cordova,plugman
I have a local plugin, which I'm trying to install to a Cordova project. Adding it through VS works like a charm, but when I'm building it, plugman tries to retrieve the plugin from the registry (npm http GET http://registry.cordova.io/[Plugin]/[Version]) and the build fails, because this plugin only exist locally....

What thread to use for Cordova plugin callback?

android,cordova,cordova-plugins
In what thread are the methods of CallbackContext supposed to be called? The documentation for CordovaPlugin#execute(...) says it's called in the WebView thread. Is that the same as the UI thread? If so, then that's probably my answer. If the WebView thread is not the UI thread, and I'm supposed...

Cordova - issue adding plugins in iOS

cordova,cordova-plugins
I am getting some strange issue while adding plugin in iOS using CLI. Executed below commands in Terminal, cordova create Documents/Work/hello com.example.hello hello world cordova platform add ios cordova plugin add org.apache.cordova.device cordova build But the build is failing & showing the below message, error: no such file or directory:...

Cordova how to install missing plugins after checkout project from repo?

cordova,ionic-framework,cordova-plugins
I just cloned repository of the cordova app, but in .gitignore file added dir /plugins. How can i install these missing plugins? U tried to find any config file where used plugins are saved, but without luck. Many thanks for any advice....

Cordova plugin error: Resource interpreted as Script but transferred with MIME type text/plain

javascript,cordova,ionic-framework,cordova-plugins
I'm using Cordova 4 with Cross-walk and on android it throws the 'Resource interpreted as Script but transferred with MIME type text/plain' error for all plugins' javascript files. I have already added the Whitelist plugin and added the following to my index.html file: <meta http-equiv="Content-Type" content="application/javascript; charset=UTF-8"> <meta http-equiv="Content-Security-Policy" content="default-src...

Card IO - Hide Manual Entry

cordova-plugins,card.io
I am using card.io through cordova. Is there a way to hide the manual entry option? We already have our own method of manual entry built in so it would be redundant to have in multiple places.

How to hide SoftKeyboard in apache cordova android

android,jquery,cordova,android-softkeyboard,cordova-plugins
I have an old android app developed with cordova and i was not too familiar with it as native java. In my app case when it opened it was displaying a login screen with username, password and Login button and i found the file that handles this functionality was signin.js...

How to automatically Open the app without user action on receiving a push on Android

android,android-intent,cordova-plugins,launching-application
I am trying to open an app when a push notification is received. Code: public class GCMIntentService extends GCMBaseIntentService { public GCMIntentService() { super("GCMIntentService"); } @Override protected void onMessage(Context context, Intent intent) { Intent dialogIntent = new Intent(this, MyActivity.class); dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(dialogIntent); } } This is what I have so far....

How to load cordova plugin dynamically into android app

java,android,cordova,cordova-plugins
I use the following code to dynamically load my class to android app. (Note: successfully loaded) File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS); String fileInput = file.getAbsolutePath() + "/file.jar"; File optimizedDexOutputPath = activity.getDir("dex", Context.MODE_PRIVATE); String fileOutput = optimizedDexOutputPath.getAbsolutePath(); DexClassLoader classLoader = new DexClassLoader(fileInput, fileOutput, null, getClass().getClassLoader()); try { Class<?> helloClass =...

Extract jar from aar for cordova plugin, Class not found error at runtime

cordova-plugins,aar
I have an "aar" file that was generated using gradle with apply plugin: 'com.android.library' Now I want to use this aar library to create a cordova plugin. I unzip the aar file, get a "classes.jar" and put the jar into cordova's "libs" directory. My cordova project compiles without any problem,...

Cordova build returns missing plugin.xml

android,cordova,phonegap-plugins,phonegap-build,cordova-plugins
When i build my cordova project i get an warning message as Missing file: /home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/nl.x-services.plugins.toast/plugin.xml Missing file: /home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/cordova-plugin-device-rotation-vector/plugin.xml This happens when i add an plugin or remove an plugin also . This happens just as a warning when i add a plugin or build the project but when i remove...

Using camera inside an ionic app

ionic-framework,cordova-plugins
I have the following problem: I need to film something with ionic but i need the camera been displayed in real time inside the app... I've tryied to use the ng cordova capture plugin like they use in their web site: var options = { limit: 3, duration: 15 };...

accessing android internal storage with cordova file plugin

android,cordova,phonegap-plugins,cordova-plugins
I'm trying to make an android app that, so far, is using the native voice recorder to record audio. The path for that is the Sounds file in /storage/emulated/0/Sounds Now the app is using the File Transfer cordova plugin. The root for that is /data/data/thisAppDirectory and requestFileSystem is using this...

Cordova PhoneGap Android Callback with data

java,javascript,cordova,phonegap-plugins,cordova-plugins
I cant figure out how to get data back from JAVA to javascript so I can update the UI using Cordova on Android. here are two buttons, as they are pressed they increment the position counter which I want to return to the UI and update the screen but cannot...

Open Camera or Gallery from “ inappbrowser ” in Apache Cordova

cordova,camera,cordova-plugins,hybrid-mobile-app,inappbrowser
I have a hybrid application developed using Apache Cordova, within that application I am using " inappbrowser ". Now the requirement is to open Camera or Gallery from the inappbrowser, I am not able to figure out how to achieve this. For developing this application I am using backbone.js, JQuery,...

Google Maps on Ionic Framework/Cordova not working on android build

cordova,ionic-framework,phonegap-plugins,cordova-plugins
I have been writing code for an app to track user location and display it using Google Maps. My code works perfectly in browsers (Safari,Firefox,Chrome) but doesn't work at all on mobile (android). The google maps api doesn't work and the navigation is unreliable. I'm a ionic newbie and wrote...

Cordova geolocation watchPosition sensitivity

cordova,geolocation,phonegap-plugins,ionic,cordova-plugins
How often would watchPosition be called if the position is constantly updated? Is this something that can be configured? The docs just say "When the device retrieves a new location, the geolocationSuccess callback executes".

Can't test Cordova app when open it in browser

ios,cordova,cordova-plugins
I created a Cordova app using the 4.3.0 version and the project for an iOS project. Whenever I open the index.html (www folder) file in a desktop browser, it gets stuck in an infinite loop requesting gap://ready. Why is this happening? How can I solve it? Thanks a lot. EDIT...

Cordova : what kind of cordova plugins should be removed in release time?

cordova,sencha-touch-2,cordova-plugins,sencha-cmd,cordova-cli
i'm working in sencha touch application with cordova. i plan to make release apk for android. Could any one explain me which kind of plugins we don't use with release apk ? i.e i'm using these plugins in my project, com.phonegap.plugins.PushPlugin 2.4.0 "PushPlugin" com.toluhta.immersify 0.1.0 "Immersify" cordova-plugin-inappbrowser 1.0.1-dev "InAppBrowser" de.mobilino.phonegap.AndroidLicensePlugin...

How to request new banner ad in AdMob Pro?

angularjs,cordova,admob,ionic,cordova-plugins
I have an Angular Ionic mobile app. I recently switched from the old AdMob cordova plugin (https://github.com/floatinghotpot/cordova-plugin-admob) to the AdMob Pro plugin (https://github.com/floatinghotpot/cordova-admob-pro). I have most everything working, but I can't figure out how to request a new ad. The old plugin had a function requestAd that would get a...

Cordova Keychain Plugin and SSKeychain Plugin do not work together

ios,cordova,cordova-plugins,keychain
We are having a tough time trying to shared info between two apps with keychain service. We have two apps: 1.- CoreApp, which is native and use this plugin SSKEYCHAIN to set values: + (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account; Where are setting for paramenter the following values: password =...

org.apache.cordova.CordovaWebView.removeView(View view) alternative for Cordova 4.0 and above?

cordova,cordova-plugins,cordova-3,cordova-4,cordova-5.0.0
I have a existing project where I had written phonegap plugin to add my own Android custom camera view or gallery view to CordovaWebView. Upto Cordova 3.7 it is fine but from Cordova 4.0 , I am getting below error. E/AndroidRuntime(25939): java.lang.NoSuchMethodError: No virtual method removeView(Landroid/view/View;)V in class Lorg/apache/cordova/CordovaWebView; or...

Manage cordova plugins with npm + package.json

npm,cordova-plugins
We have an Angular + Ionic + Cordova project with multiple devs that we'd like to manage cordova plugin dependencies for. We are using Cordova CLI 5+, and when manually running the install commands (e.g. cordova plugin add cordova-plugin-camera), a new line gets added to the cordovaPlugins section of the...

Geolocation not working in Cordova Android emulator

cordova,visual-studio-2013,geolocation,phonegap-plugins,cordova-plugins
I am using visual studio Cordova tool for creating application. I am uding geolocation of HTML5 for getting user location. When I execute it in ripple naxus-galaxy, it working fine, but when I run it in android emulator, it's not working at all. It shows me GPS system on top...

Cordova Camera Plugin, saveToPhotoAlbum option is not working in Android 5.0.1

android,cordova,camera,cordova-plugins
I want to save the picture in album after capturing the picture using Cordova Camera Plugin. So I tried with the camera option 'saveToPhotoAlbum' set to true, but this is not saving the captured image but the same is working in iOS. I set the following options: { quality :...

Any sample Cordova Apps available for visual studio developers

cordova,cordova-plugins,visual-studio-2015,visual-studio-cordova
i'm new for mobile app development. please post links, sample or any cordova apps for visual studio developers. if any body is willing to answer me please do that. if you don't know please ignore, otherwise don't discourage about it. Thanks...

Ionic: From iOS to Android: Compilation error with whitelist plugin

cordova,ionic-framework,cordova-plugins
I am developing am app that works great for iOS, using ionic. In trying to test for Android for the first time by doing ionic build android and it compiled fine. When I installed it on my android device, I noticed all network access was prohibited. On further investigation, I...

Change the icon of the push notification status bar on Android and IOS

android,ios,cordova,ionic-framework,cordova-plugins
My app icon is blue/red and when I receive a push notification the icon on status bar is the same app icon(blue/red). I want the icon of the status bar be a transparent and white version. My ionic project is using this cordova plugin to receive push notifications. The official...

Best practices for Cordova/Ionic Plugins management?

cordova,phonegap-plugins,cordova-plugins,ionic
What are the best practices for checking in plugins for my Ionic/Cordova project? I would like to minimize the number of files that are checked into my project. Mainly I do not want to checkin any file that my project downloads from an outside source and also want to leave...

How to download a library dependence on gradle for external use?

cordova,android-studio,gradle,android-gradle,cordova-plugins
I have a project on PhoneGap and I am trying to build a plugin to use a FilePicker library. So, I build one Android Studio Project and I have it working. So, right now, that I know that I know how to do it, I just need to know how...

Cordova cordova.plugins is undefined on win8 but not on iOS

javascript,cordova,cordova-plugins,visual-studio-cordova
I'm using the plugin fileopener2 and to use it, I must call cordova.plugins.fileopener2.open(...); When I run this on iOS, everything works perfectly. However, when I run the app on win8, I get an error telling me that cordova.plugins is undefined. Also, I double checked that, after 'ondeviceready' is fired, I...

Unable to install plugins in cordova project

cordova,github,command-line-interface,cordova-plugins
Am facing a big issue : Unable to install the phonegap plugins in my cordova project.Actually it was working fine still yesterday. Now whenever I try adding any cordova plugin using CLI in my cordova project. I get the following error; D:\Projects\test cordova>cordova plugin add org.apache.cordova.network-information Fetching plugin "org.apache.cordova.network-information" via...

Visual Studio 2015 RC Cordova Tools - Plugin Fails to Launch

javascript,cordova,cordova-plugins,visual-studio-2015
After struggling for several hours with getting Visual Studio 2015 Cordova Tools set up and running, the first plugin I add, Device, fails to launch at onDeviceReady. No error is thrown. It simply does not launch and when I attempt to access one of its properties, then I get a...

Unable to install Plugman in iOS

ios,cordova,cordova-plugins,cordova-cli,plugman
I want to install Plugman in iOS for managing the Phonegap plugins. I am using the below command in Terminal. npm install -g plugman But I am getting the below error, npm ERR! Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json' npm ERR! { [Error: EACCES, open '/Users/gtmac/.npm/npm/1.3.4/package/package.json'] npm ERR! errno: 3, npm ERR!...

Cordova Push Notification using Parse not working when app is Open when App is closed or in background it is working in Window Phone

windows-phone-8,parse.com,push-notification,cordova-plugins
I have created in windows phone in Cordova. All things are working fine. But now I have integrated Push Notification using Parse. I have configured correctly. But now I am only getting push when my app is in background or closed. But I am not getting Push notification when my...

Fire Event from Cordova Plugin from native implementation

cordova,cordova-plugins
I'm implementing Cordova native plugin and I want to expose events from the native implementation to the JS. I've saw that apache/cordova-plugin-geolocation implement watchPosition by repeatedly calling the success callback until clearWatch is called. I also found there is a method cordova.fireDocumentEvent but didn't found good documentation about it. What...

A Plugin to view PDF document in iOS cordova based application

ios,iphone,ios8,phonegap-plugins,cordova-plugins
Can please suggest a working plugin to view PDF in iOS Cordova based application. I have tried many of PDF related plugins: https://github.com/siegfriedbolz/cordova-plugin-file-opener2.git https://github.com/RandyMcMillan/PDFViewer but of no use..My application stopped at loading. Lastly with I have tried with pebois/phonegap-plugin-PDFViewer: I have installed using : "cordova plugin add com.lesfrancschatons.cordova.plugins.pdfreader" In index.html:...

Cordova SocialSharing Plugin - Facebook Callback Error

ios,facebook,cordova,phonegap-plugins,cordova-plugins
I've been using the SocialSharing plugin in my Cordova app for many months and it's been working great, and I rely on its FB Sharing's callback functionality to track if people shared a post. However, I just discovered that the callback stopped working correctly on iOS 8.1. When I click...

KendoUI mobile app, view event afterShow has no access to cordova plugin. Outside event is fine

cordova-plugins,kendo-mobile,telerik-appbuilder
I have a kendoui applbuilder mobile app. I have installed a custom camerapreview plugin and it works fine. I tried adding an event handler to my view (afterShow) to set something in the camera plugin module: cordova.plugins.camerapreview.startCamera( which initializes the camera preview. the problem seems to be that in this...

Using cordova plugins in InAppBrowser

cordova,cordova-plugins
Is it possible to use cordova plugins in a site in InAppBrowser? And when how? The deviceready event is never fired in the InAppBrowser?

cordova: module "cordova/plugin/SmsInboxPLugin not found

javascript,android,cordova,cordova-plugins
I am trying to use the sms-reception-plugin. I created the plugin.xml <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova.plugin" version="0.1.2" > <name>SmsReception</name> <description>Cordova SmsReception Plugin</description> <license>Apache 2.0</license> <keywords>cordova,smsreception</keywords> <js-module src="www/SmsInboxPlugin.js" name="cordova.plugin.smsplugin"> <clobbers target="cordova.plugin" /> </js-module> <!-- android...

Cordova plugins for set alarm clock

cordova,cordova-plugins
I'm working on Cordova app and I want to find a way to set an alarm in my app. I have a look about cordova-plugin-wakeuptimer but it uses date to activate alarm. The concept is that the app will alarm user when user get in the area of some location....

Pass Audio/Video stream to html page using PhoneGap on iOS?

ios,cordova,cordova-plugins
I'm working on RealTime Communication project on iOS. It has video call feature... It is working good on native code (objective-c) but I'm trying to create a PhoneGap plugin, I dont know how would I pass the audio and video stream into HTML from Objective-C. Appreciate your help! Thanks in...

THREAD WARNING: ['Console'] took '81.661865' ms. Plugin should use a background thread

ios,thread-safety,phonegap-plugins,cordova-plugins,background-thread
Hi I am getting warning as : "THREAD WARNING: ['Console'] took '81.661865' ms. Plugin should use a background thread." while running iOS phone-gap project. Similarly for some of the remaining plugins like geolocation and filesystem. As I am new to phone gap ,can please anyone tell me how can I...

Build errors in Xcode

cordova,ionic-framework,ionic,cordova-plugins
My app works fine in Chrome/Safari web browsers but when I try to run it from Xcode I get an error. I only started getting this error once I added the cordova plugin Network Information via cordova plugin add https://github.com/apache/cordova-plugin-network-information Also, I'm on cordova 4.3.0 and Xcode 6.3.1. Is there...

Programmatically enable GPS of device when application opens in cordova

angularjs,cordova,ionic,cordova-plugins
I have been working on cordova ionic app with angularJS frontend. Here when this app is getting launch the device should check for the status of the GPS whether it is on or not and if it is not on then make it on automatically. I didn't found any cordova...

How to get IMEI Number in Cordova?

jquery,angularjs,cordova-plugins
I am developing an application in Cordova which requires to get the IMEI number of any device programatically. Cordova Provides the UUID number but that won't work for me, I need IMEI number. Or is there any plugin to get the IMEI Number directly? "IMEI PhoneGap Plugin in Android" it...

How to show icons in $cordovaActionSheet plugin buttonLabels in ionic framework?

angularjs,cordova,ionic-framework,cordova-plugins
I am trying to add icon in buttonLabels in $cordovaActionSheet plugin but it didn't working. I have tried var options = { title: 'Share', buttonLabels: ['<i class="ion-social-facebook"></i> Share via Facebook', '<i class="ion-social-twitter"></i> Share via Twitter'], }; but it prints tag as it is. How do I show icons in button...

Cordova Plugin to ask for Ratings

cordova,phonegap-plugins,cordova-plugins,rating
I am looking for a cordova plugin that asks for ratings similar to askingpoint.com. Basically I need a plugin that can send a popup to the user to rate the app after a specific task or amount of days using the app. Of course this needs to be for Phonegap/Cordova

How do you specify URLs for Contact.photos?

cordova,phonegap-plugins,contacts,android-contacts,cordova-plugins
https://github.com/apache/cordova-plugin-contacts#contact Where can I put the image file (eg can I have it on S3, or shipped with the app in the resources), and what is the correct format for the URL? var contact = navigator.contacts.create(); contact.photos = [new ContactField('url', URL, true)]; contact.save() ...

How do I use Meteor and a Cordova BLE plugin to connect to a BLE device

meteor,bluetooth-lowenergy,cordova-plugins
I'm trying to use Meteor and this Cordova plugin -https://github.com/don/cordova-plugin-ble-central - added to my project using meteor add cordova in order to connect to a Bluetooth LE device (TI Sensortag). All I want to do to begin with is, when a link is clicked, to connect to the device and...

Plugman framework skips Mac OS X symbolic links

cordova,cordova-plugins,cordova-cli,plugman
I'm working on this plugin: com.ios.libgoogleadmobads, which is a helper plugin for https://github.com/appfeel/admob-google-cordova (com.admob.google cordova admob plugin) As you can see here: https://github.com/appfeel/google-iosadmobads/tree/master/src/ios/GoogleMobileAds.framework there are two symbolic lynks. When I try to install the plugin: cordova plugin add com.ios.libgoogleadmobads The links are skipped. Any workaround/solution please? UPDATE As a workaround...

Ripple geolocation settings being ignored by Cordova application

cordova,gps,cordova-plugins,visual-studio-cordova,ripple
I'm using Visual Studio 2013 Update 4 and I've installed the Visual Studio for Cordova add-on (version 0.3.22015.1). I have created an Angular based app based on the Ionic SideMenu Starter Template for Cordova example. I have included the Cordova geolocation plugin in the config.xml file. Within this example I...

Cannot get Cordova project building in VS2015 with the facebook connect plugin

facebook,cordova,cordova-plugins,visual-studio-2015,visual-studio-cordova
I've tried everything, but cannot seem to get it working. I've done the following: 1.Remove the plugins with the variables via the config designer. 2.Update to Cordova 5.0.0 via the config designer (Platforms > Cordova CLI) 3.From the command line: 1.Go to your project directory. 2.Type the following substituting the...

Ionic platform events not working

cordova,phonegap-plugins,ionic-framework,cordova-plugins,ionic
This worked fine until today, don't know does it have something with new release of Ionic or something else. This is what i have: $ionicPlatform.ready(function() { if (window.cordova && window.cordova.plugins.Keyboard) { cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); } if (window.StatusBar) { // org.apache.cordova.statusbar required StatusBar.styleDefault(); } $ionicPlatform.on('pause', function(){ alert("pause"); $rootScope.$broadcast('app-pause', {}); $rootScope.$emit('app-pause', {}); }) $ionicPlatform.on('resume',...

How to target WP8.0 using VS2013, using Navigator from WinJS and BarcodeScanner from Cordova

winjs,cordova-plugins
I am puzzled. I am getting my hands on Windows Phone development. I want to develop a Cordova Javascript Application that includes barcode scanning. I have found this plugin: https://github.com/wildabeast/BarcodeScanner This plugin doesn't work with WP 8.1 so I am targetting Windows Phones 8 using VS2013. I wanted to use...

Ionic plugin need to remove platform and readd platform before it work

android,cordova,ionic-framework,ionic,cordova-plugins
I have package.json like this, "cordovaPlugins": [ "com.ionic.keyboard", "org.apache.cordova.camera", "org.apache.cordova.console", "org.apache.cordova.device", "org.apache.cordova.dialogs", "org.apache.cordova.file", "org.apache.cordova.file-transfer", "org.apache.cordova.geolocation", "org.apache.cordova.network-information", "org.apache.cordova.splashscreen", "cordova-plugin-whitelist", ], "cordovaPlatforms": [ "ios", "android" ] The root project directory does not have plugins and platforms directory, when I pull from repository....

Cordova/phonegap activity lifecycle

android,google-maps,cordova,phonegap-plugins,cordova-plugins
I'm working on a map plugin for android in a cordova application (let's forget for a second that there is already more than one in the wild, and consider this an academical question), the documentation for MapView states: Users of this class must forward all the life cycle methods from...

What is the workflow to build and debug Cordova Plugin?

cordova,cordova-plugins
I'm trying to build Cordova plugin that will expose native API to Cordova JS. The plugin will not be published to the public registry. I'll like to understand what are the tools and flow to use to develop that? The cordova tool has only the ability to add/remove/ls plugin, how...

How to implement onReset with Cordova?

javascript,ios,cordova,cordova-plugins
I am interested on how to implement the onReset method to know when my plugin in reseted. As seen in Cordova guidelines at Plugin Initialization and Lifetime Plugins with long-running requests, background activity such as media playback, listeners, or that maintain internal state should implement the onReset method to clean...

Cordova Android Filetransfer returning null

cordova,ionic-framework,ionic,cordova-plugins,ngcordova
Not a fan of a double post, but here's a link to another thread: http://forum.ionicframework.com/t/android-filetransfer-returning-null/22528 Attempting to do an android FileTransfer, plugin is working on iOS, I can't seem to get this to go! ADB lgocat output: E/PluginManager(23753): Uncaught exception from plugin E/PluginManager(23753): java.lang.IllegalStateException: Tried to perform an IO operation...

CordovaWebView.Cordova_Version Error

android,cordova,cordova-plugins,cordovawebview
I have just created a splash screen in my cordova project. I was able to build and run my project initially and my splash screen was displaying. However, when I added in the cordova.jar into the project library to serve as a file dependencies for my webservice function. I kept...

$cordovaFile.checkDir says folder does not exist but $cordovaFile.createDir says folder already exists

javascript,cordova,ionic-framework,cordova-plugins
I am trying to work with the ngCordova File plugin as documented here: http://ngcordova.com/docs/plugins/file/, but am getting strange behaviour. I am trying to create a folder if it does not already exist. I am testing for its existence using: $cordovaFile.checkDir(cordova.file.dataDirectory, 'inbound') Now this returns NOT_FOUND_ERR so i try to create...

How to run php code inside cordova?

php,cordova,cordova-plugins
I am new to cordova and want to transfer my existing app build with jquery mobile and php to iOS/Android. Am I correct, that there is no php interpreter inside cordova? That would mean, that the existing app is not transfarable to cordova as php is a central component in...

CERT_UNTRUSTED Error Response from Amazon SNS from Node.js

node.js,amazon-web-services,push-notification,cordova-plugins,amazon-sns
I am using sns-mobile to register mobile device with Amazon SNS. I followed this tutorial on SNS Push Notifications using nodejs. The code for creating the SNS object looks like the following: var myApp = new SNS({ platform: SNS.SUPPORTED_PLATFORMS.ANDROID, region: 'eu-west-1', apiVersion: '2010-03-31', accessKeyId: config.sns.key_id, secretAccessKey: config.sns.secret_key_id, platformApplicationArn: config.sns.arn });...

how to communicate between Native iOS custom plugin with Cordova 3.8 index.html via javascript in a phone gap application?

ios,objective-c,cordova,phonegap-plugins,cordova-plugins
I have referred many links for maintaining bridge between iOS custom plugin with cordova index.html file using -(void)methodName:(CDVInvokedUrlCommand*)command; And even referred : iOS JavaScript bridge But I want to maintain a direct connection from myplugin to index.html.Can anyone suggest me the better way to implement this. I have created myplugin.js...

cordova app gets refreshed when trying to upload image, using the image picker plugin inside a form

cordova,backbone.js,backbone-views,cordova-plugins,cordova-3
when i try to add images inside a form using the image picker plugin, the app get refreshed. But when i try to add image outside the form it works fine. Can anyone please guide me what am i doing wrong? this is what i have tried <form id="formDemand" enctype="multipart/form-data"...

Invoke Cordova callback from remote process

android,cordova,callback,cordova-plugins
Is it possible to invoke a javascript callback with cordova from a remote process? Plugin.xml: <service android:name="MyLocationListeningService" android:process=":remote" /> MyLocationService.java: public MyLocationListeningService extends Service implements LocationListener { public void onLocationChanged(Location location) { //invoke a javascript callback with cordova } } ...

Running PhoneRTC Demo

android,webrtc,cordova-plugins,phonertc
I am trying to run the phoneRTC demo, I hae build the android demo app and have a signalling server running but when I run the client app on android all I get is a blank screen. these are the steps I have taken: npm install -g cordova bower grunt-cli...

Device ID & Platform Not Retrieving Amazon Fire OS

cordova,ionic,cordova-plugins
Is there any issue when trying to retrieve the device ID or platform from a Amazon fire OS device? it's working fine for iOS and Android but does not get anything when testing on a Amazon device. I am using http://ngcordova.com/docs/plugins/device/...

How do I replace the deprecated methods toSuccessCallbackString and writeJavascript in Objective-C?

ios,objective-c,cordova,callback,cordova-plugins
Since I am coming from a Java background I am not an Objective-C expert and thus struggling a bit to modify the following code: - (void) loadHTML:(CDVInvokedUrlCommand*)command { NSString* callbackId = command.callbackId; NSArray *arguments = command.arguments; CDVPluginResult* pluginResult; if (webView) { NSString *stringObtainedFromJavascript = [arguments objectAtIndex:0]; [webView loadHTMLString:stringObtainedFromJavascript baseURL:baseURL]; if...