I'm trying to use facebook-connect ionic cordova plugin and I have a problem, i can't add the facebook SDK as they say here : https://ionicframework.com/docs/native/facebook/
In the link they say to put $ cordova plugin add cordova-plugin-facebook-connect --save --variable APP_ID="123456789" --variable APP_NAME="myApplication"
but it doesn't work, it says :
"The term 'cordova' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
how can i add to capacitor?
Best Regards
First of all, you should set up your environment correctly. Command cordova doesn't set properly. Check this question: How to fix 'cordova' is not recognized in the Windows command prompt
Also, probably you should set up variables manually for the plugin:
How to set Cordova plugin variables in a Capacitor app?
Related
I need to install swiftlint with mint on my mac, on the path user/.mint/bin, but xcode dont recognize the installation i can use a custom path xcode swiftlint configuration ?
I added a default image from the conf below.
Before checking for swiftlint, your script needs to update the local PATH:
export PATH=${HOME}/.mint/bin:${PATH}
# Rest of script
I am using ionic 1.3.1 and I want to use the npm phone module here to validate phone numbers on the client side.
In looking around on how to use the npm module, I followed instructions in this SO post (last answer at the bottom) and copied the phone directory from npm_modules to www/lib. I then included the lib/phone/lib/index.js file in my index.html.
When I bring up the page with ionic serve I get the error "module not found".
I see solutions for using npm in Ionic v2 but am not ready to move to v2 yet. I also see some answers pointing towards using Browserify but I am trying to avoid having to use new tools if I don't need to - feels like there must be a simple way to use an npm module inside ionic.
Thanks for any pointers to help resolve.
Sanjay
Since I couldn't figure this out I just created an Angular service from the code in the index.js file for the npm phone module.
I found one answer "adb devices"commend to know list of devices attached.But my doubt is where to type this commend and how to know my android SDK paths connecting with ionic .please exp in detail
1.) Enable debugging over USB
2.) Install drivers for mobile device
3.) Run adb devices in cmd.exe
$ ionic platform add android
$ ionic run android
Chapter 2: Installation
Windows users developing for Android: You'll want to make sure you
have the following installed and set up.
NOTE: Whenever you make changes to the PATH, or any other environment
variable, you'll need to restart or open a new tab in your shell
program for the PATH change to take effect.
Java JDK
Install the most recent Java JDK (NOT just the JRE).
Next, create an environment variable for JAVA_HOME pointing to the
root folder where the Java JDK was installed. So, if you installed the
JDK into C:\Program Files\Java\jdk7, set JAVA_HOME to be this path.
After that, add the JDK's bin directory to the PATH variable as well.
Following the previous assumption, this should be either
%JAVA_HOME%\bin or the full path C:\Program Files\Java\jdk7\bin
Apache Ant
To install Ant, download a zip from here, extract it, move the first
folder in the zip to a safe place, and update your PATH to include the
bin folder in that folder. For example, if you moved the Ant folder to
c:/, you'd want to add this to your PATH: C:\apache-ant-1.9.2\bin.
Android SDK
Installing the Android SDK is also necessary. The Android SDK provides
you the API libraries and developer tools necessary to build, test,
and debug apps for Android.
Cordova requires the ANDROID_HOME environment variable to be set. This
should point to the [ANDROID_SDK_DIR]\android-sdk directory (for
example c:\android\android-sdk).
Next, update your PATH to include the tools/ and platform-tools/
folder in that folder. So, using ANDROID_HOME, you would add both
%ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools.
I would like some assistance with IONIC. My update is not working. I have tried the following command:
ionic lib update
The result of this command is as follows:
http://i.imgur.com/jtT6af3.png
I believe the problem lies in the fact I am not in the www directory. I would like to know how to locate the www directory.
Any assistance is appreciated. Thanks
You do not need to be in www folder, if you want to update ionic libraries of your project then go to your ionic project folder and run
ionic lib update
But if you want to update your ionic package then run this command anywhere
sudo npm update -g ionic
In case of windows os npm update -g ionic
I have followed theese instructions.
installed plugman (command didnt work, so I added this C:\Users\XXX\AppData\Roaming\npm\node_modules\cordova\node_modules.bin to PATH to make 'plugman' command work in cmd).
after getting plugman command to work (it's help was working in console), Ive entered the camera api command:
plugman --platform android --project c:/path/to/app --plugin https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
the output was:
undefined is not a function
what did I do wrong?
I've found an answer on phonegap google group.
To make this work, you need to install git console and then download the plugin with command:
phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
The is a bug that was recently submitted and fixed.
You basically need Git installed, yes, but for plugman to work in "cmd.exe" (or any non-Git CLI) you need to have Git/bin in your system path.
Taken from my blog (http://atomicstructure.net/blog/2013/07/phonegap-3-0-troubles):
Click Start, right-click Computer then select Properties. Click Advanced System Settings (top-left) then Environment Variables in the Advanced tab.
Under System variables find the variable called Path and edit that to include the full system path to where Git is installed. So for example, mine now reads:
%SystemRoot%\system32;%SystemRoot%; [snip] ;C:\Program Files (x86)\Git\bin
With the all important bit highlighted in bold. As with Ant and Android Development Tools, you'll need to include the /bin subfolder, too.