I want to add a plugin from a github fork of the InAppBrowser. This is the fork I want to use. I know how to add the plugin. I simply use Ionic Cordova plugin add https://github.com/al1lhomme/cordova-plugin-inappbrowser
But how can I import it to the modules.ts? I think it is necessary to add it to npm correct? I think I have to install the npm module to import it in my modules.ts file.
I tried to use cordova.plugins.InAppBrowser but it doesn't work.
Thanks to everyone.
You never add the Plugin to the Module. What you add to the Modules.ts is the native Wrapper from Ionic. You can use Plugins without this Wrapper, but they are developed for an easier use. I don't know if they work with Forks, normally they are developed to work with the original plugin.
So try to just add the Plugin via
ionic cordova plugin add path_to_fork
And use it without the Wrapper, as described in the Plugins Read Me
I have a Java package .aar file. I need to use it in Ionic application. I try to create a Cordova plugin and add an aahe file in it.But don't have proper idea about it.
Do anyone suggest how to do it?
Any link?
Google SDK used in my existing project. After that I want to implement Parse Cloud in my application. Then I just follow this below link:
enter link description here
But I found below problem after add all libraries in my project & build the project
Lexical or Preprocessor Issue
'GoogleMaps/GoogleMaps.h' file not found
Please give me some suggestion ....
I had a similar problem with GoogleMaps and another framework. You may try going into Build Settings > Framework Search Paths and rearranging the order of the frameworks so that Parse is loaded before GoogleMaps.
I am new to webworks development..when i add plugin in webwroks projects using command prompt,showing following error
'webwroks' not recognised as internal or external command.
please help me as quick as possible
are you typing "webworks", or "webwroks" like shown above?
To add a plugin you would type
webworks plugin add <plugin-name>
For example...
webworks plugin add com.blackberry.app
I'm confused a bit by PhoneGap documentation:
Link 1 // How add plugins using "phonegap local plugin add" command
Link 2 // Tutorial about how to use camera module
Link 3 // PhoneGap Plugins
I've added camera module according (1). But in (2), there is information saying that I should add
<plugin name="Capture" value="org.apache.cordova.Capture"/>
to app/res/xml/plugins.xml and edit app/AndroidManifest.xml files too.
In reference to 3), also there is information that <plugin ... /> construction is obsolete and the developer should use <gap:plugin ... />, instead.
Referencing the latest API documentation:
There are two ways to approach this, first is by using Plugman, and the other is by using CLI. The CLI approach is much simpler.
The Plugman approach:
First, Plugman must be installed. Plugman is the plugin manager used by PhoneGap 3.4. To install Plugman, use the Node JS CLI and enter:
npm install -g plugman
Install the specific plugin using the plugman install command. For example plugman install --platform android --project platforms/android --plugin org.apache.cordova.device-motion. Be sure that the parameter for the --project option points directly to the platform folder, e.g. for Android, that's where the AndroidManifest.xml file is. This command automatically adds all references to the plugins to the pertinent xml files.
Be sure that your HTML file references phonegap.js by the line <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>.
Using CLI:
Go to your app directory and enter the plugin command in the CLI. For example:
phonegap plugin add org.apache.cordova.device-motion
installs the accelerometer plugin.
After the plugin has installed, it automatically updates all config.xml by adding the corresponding <feature> tags. Note that these updates only affect the platform-specific config.xml files. And so, the top-level config.xml file is not affected. You must manually copy and paste the <feature> tags to the top level config.xml. Otherwise, the plugins will be disabled when you run the app using phonegap run platform.
Take note that the corresponding <feature> tags can only be added to the corresponding config.xml files if your project is already ready to deploy in that specific platform.
If you are using phonegap 3.0 the latest as of this answer, you add plugins from the command line like so.
"phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git"
This is supposed to then add all the references to the plugin automatically now.
I have recently installed the AdMob plugin in my project.
To do this :
I opened NODE.js command prompt.
Navigated to the phonegap project.
Then typed this into the cmd : phonegap plugin add cordova-plugin-admobpro
This installed the plugin in the plugins directory in my phonegap project folder.
:)
Since Phonegap 3.0 you need to use 'plugman' to add plugins to a phonegap project.The important part is to set the 'path' to your project in the platform specific project folder created by phonegap. In iOS it would be something like: /Users/user1/Dev/helloworld-phonegap/platforms/ios.
Do the following to install the dialogs plugin for ios.
1) npm install -g plugman
2) plugman install --platform ios --project /path/to/my/platform/folder --plugin org.apache.cordova.dialogs
I
check the docs for more info: http://docs.phonegap.com/en/3.3.0/plugin_ref_plugman.md.html#Using%20Plugman%20to%20Manage%20Plugins