phonegap-plugins

Add an “exclude module” rule to an entry in plugin.xml for Cordova

て烟熏妆下的殇ゞ 提交于 2019-12-01 21:45:59
I'm stucking with this error trying to build my phonegap project As far I know this error because there is a library is set twice in the project. I check all my libraries and I found only one library causing this(found in one of my plugins) <framework src="com.android.support:design:23.4.0"/> The thing is, can I set an exclude module rule in the plugin.xml file? I think I need to exclude com.android.supportv4 Finally I resolved it, I had to create a build-extras.gradle file in my plugin containing the following lines: configurations { all*.exclude group: 'com.android.support', module: 'support

Phonegap 3.0 Custom Plugin

一曲冷凌霜 提交于 2019-12-01 14:27:39
I put together a plugin for an app some months ago with phonegap 2.7 and it worked perfectly. The plugin basically opens up the users phonebook and returns to my app the details of the contact the user selects. I have recently upgraded to Phonegap 3.0 and I am trying to convert my plugin to 3.0; However I can't get the plugin to work now that it's all 3.0....here is what I have ContactView.java src\com\huronasolutions\plugins\ContactView.java package com.huronasolutions.plugins; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity;

Cordova build returns missing plugin.xml

送分小仙女□ 提交于 2019-12-01 13:55:10
问题 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 the plugin error occurs as Error: ENOENT, no such

Phonegap password prompt

风流意气都作罢 提交于 2019-12-01 13:35:10
i want to make a password prompt in phonegap. any plugins or html/js snippet i have tried function onPrompt(results) { alert("You selected button number " + results.buttonIndex + " and entered " + results.input1); } // Show a custom prompt dialog // function showPrompt() { navigator.notification.prompt( 'Please enter your name', // message onPrompt, // callback to invoke 'Registration', // title ['Ok','Exit'] // buttonLabels ); } but it doesnt have any option for password You need to look at the native code to display password promt. As I never need a "normal prompt", I have changed the code

Phonegap 3.0 Custom Plugin

有些话、适合烂在心里 提交于 2019-12-01 13:21:33
问题 I put together a plugin for an app some months ago with phonegap 2.7 and it worked perfectly. The plugin basically opens up the users phonebook and returns to my app the details of the contact the user selects. I have recently upgraded to Phonegap 3.0 and I am trying to convert my plugin to 3.0; However I can't get the plugin to work now that it's all 3.0....here is what I have ContactView.java src\com\huronasolutions\plugins\ContactView.java package com.huronasolutions.plugins; import org

MobileIron with sharepoint for authentication

时光怂恿深爱的人放手 提交于 2019-12-01 12:51:34
Do we have any in-built feature to authenticate and authorize a user from mobile iron to SharePoint? User will be authenticated via mobile iron now he must be login to SharePoint seamlessly. With MobileIron you can use Kerberos Constrained Delegetion (KCD) for seamless authentication to a system behind the MobileIron Sentry / accessed through the Sentry. There is a dedicated document available through support access from MobileIron where this stuff is explained in detail. At this point I'll only point out the overall process to access SharePoint with the MobileIron Web@Work browser: You have

error to filetransfer.download in android (erro code 1)

走远了吗. 提交于 2019-12-01 12:13:30
问题 document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { //request the persistent file system window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, fileSystemSuccess, fileSystemFail); } function fileSystemSuccess(fileSystem) { var directoryEntry = fileSystem.root; // to get root path to directory directoryEntry.getDirectory("teste_recev", {create: true, exclusive: false}, onDirectorySuccess, onDirectoryFail); var rootdir = fileSystem.root; var fp = rootdir

Bind a native iOS event to a webView using a custom Cordova plugin

ぃ、小莉子 提交于 2019-12-01 12:01:54
问题 I have to create a plugin to catch events occurring in the Cordova webView of my iOS application and trigger actions in the native part of the app, and vice versa. I have followed this tutorial and it works perfectly. When I try to adapt it to another app (I wanted it more general than the tutorial is), it works from the webView to the native part, but not the other way. I am just trying to click on a button on a navigationBar to change the background color of my webView. At the moment, it

How to implement facebook send, twitter share, send sms, send email in my phonegap android application?

会有一股神秘感。 提交于 2019-12-01 11:26:23
问题 As i am using HTML based phonegap framework, i need a plugin to implement this. when i searched over google, i got two revelent searches. http://tech.sarathdr.com/featured/android-phonegap-plugin-for-social-share-email-facebook-twitter-and-sms a. In the above twitter functionality is not implemented. b. There is a typo in the above facebook share code window.plugins.SendSms.social ----> (should be)window.plugins.ShareSocial.social c. As it is developed for phonegap 1.9, it has some deprecated

MobileIron with sharepoint for authentication

我是研究僧i 提交于 2019-12-01 11:17:09
问题 Do we have any in-built feature to authenticate and authorize a user from mobile iron to SharePoint? User will be authenticated via mobile iron now he must be login to SharePoint seamlessly. 回答1: With MobileIron you can use Kerberos Constrained Delegetion (KCD) for seamless authentication to a system behind the MobileIron Sentry / accessed through the Sentry. There is a dedicated document available through support access from MobileIron where this stuff is explained in detail. At this point I