Security News
Python Overtakes JavaScript as Top Programming Language on GitHub
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
cordova-plugin-intercom
Advanced tools
This is a plugin that allows your Cordova or PhoneGap app to use Intercom for iOS and/or Intercom for Android.
To install the plugin in your Cordova app, run the following:
cordova plugin add cordova-plugin-intercom
To add the plugin to your PhoneGap app, add the following to your config.xml
:
<plugin name="cordova-plugin-intercom" version="~3.2.0" />
Intercom is compatible with both Ionic 1 & 2. To use the Intercom with Ionic, run the following:
cordova plugin add cordova-plugin-intercom
Make sure you initialize Intercom correctly.
For Ionic 1 you can use Intercom like this:
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
cordova.plugins.intercom.registerIdentifiedUser({userId: "123456"});
cordova.plugins.intercom.setLauncherVisibility('VISIBLE');
});
})
For Ionic 2 you need to add the folling variable to your app.component.ts
:
declare var cordova:any;
You can then use Intercom like this:
this.platform.ready().then(() => {
cordova.plugins.intercom.registerIdentifiedUser({userId: "12345"});
cordova.plugins.intercom.setLauncherVisibility('VISIBLE');
});
An example app is provided here that shows a basic Cordova/Phonegap app integration with Intercom.
Thanks to Josh Dover from AskU for making a Cordova plugin for Intercom for iOS which helped lots of people to integrate Intercom in their iOS Cordova apps. 👍
intercom-cordova is released under the MIT License.
3.2.0 (2017-04-21)
intercom.setUserHash(userHash)
to support Identity Verification. This method replaces intercom.setSecureMode(hmac, data)
which was used for our previous security feature Secure Mode.FAQs
Official Cordova plugin for Intercom
The npm package cordova-plugin-intercom receives a total of 1,366 weekly downloads. As such, cordova-plugin-intercom popularity was classified as popular.
We found that cordova-plugin-intercom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Python becomes GitHub's top language in 2024, driven by AI and data science projects, while AI-powered security tools are gaining adoption.
Security News
Dutch National Police and FBI dismantle Redline and Meta infostealer malware-as-a-service operations in Operation Magnus, seizing servers and source code.
Research
Security News
Socket is tracking a new trend where malicious actors are now exploiting the popularity of LLM research to spread malware through seemingly useful open source packages.