
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
ionic-plugin-deeplinks
Advanced tools
This plugin makes it easy to respond to deeplinks through custom URL schemes and Universal/App Links on iOS and Android.
For example, you can have your app open through a link to https://yoursite.com/product/cool-beans and then navigate to display the Cool Beans in your store (cool beans!).
Additionally, on Android and pre 9.2 iOS, your app can be opened through a custom URL scheme, like coolbeans://app/product/cool-beans
.
Since Custom URL schemes are no longer supported on iOS >= 9.2 iOS, you'll need to configure Universal Links
Note: this plugin may clash with existing Custom URL Scheme and Universal Links Plugins. Please let us know if you encounter compatibility issues. Also, try removing them and using this one on its own.
cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME myapp --variable DEEPLINK_SCHEME=https DEEPLINK_HOST=example.com
Fill in the appropriate values as shown below:
URL_SCHEME
- the custom URL scheme you'd like to use for your app. This lets your app respond to links like myapp://blah
DEEPLINK_SCHEME
- the scheme to use for universal/app links. 99% of the time you'll use https
here as iOS and Android require SSL for app links domains.DEEPLINK_HOST
- the host that will respond to deeplinks. For example, if we want example.com/product/cool-beans
to open in our app, we'd use example.com
here.note: make sure to call IonicDeeplink from a platform.ready or deviceready
event
Using Ionic Native:
import {Deeplinks} from 'ionic-native';
Deeplinks.route({
'/about-us': AboutPage,
'/universal-links-test': AboutPage,
'/products/:productId': ProductPage
}).subscribe((match) => {
// match.$route - the route we matched, which is the matched entry from the arguments to route()
// match.$args - the args passed in the link
// match.$link - the full link data
console.log('Successfully matched route', match);
}, (nomatch) => {
// nomatch.$link - the full link data
console.error('Got a deeplink that didn\'t match', nomatch);
});
If you're using Ionic 2, there is a convenience method to route automatically (see the simple Ionic 2 Deeplinks demo for an example):
Deeplinks.routeWithNavController(this.navController, {
'/about-us': AboutPage,
'/universal-links-test': AboutPage,
'/products/:productId': ProductPage
}).subscribe((match) => {
// match.$route - the route we matched, which is the matched entry from the arguments to route()
// match.$args - the args passed in the link
// match.$link - the full link data
console.log('Successfully matched route', match);
}, (nomatch) => {
// nomatch.$link - the full link data
console.error('Got a deeplink that didn\'t match', nomatch);
});
Coming soon: VanillaJS and Ionic 1/Angular 1 instructions
As of iOS 9.2, Universal Links must be enabled in order to deep link to your app. Custom URL schemes are no longer supported.
Follow the official Universal Links guide on the Apple Developer docs to set up your domain to allow Universal Links.
Android supports Custom URL Scheme links, and as of Android 6.0 supports a similar feature to iOS' Universal Links called App Links.
Follow the App Links documentation on Declaring Website Associations to enable your domain to deeplink to your Android app.
FAQs
Ionic Deeplinks Plugin
The npm package ionic-plugin-deeplinks receives a total of 3,810 weekly downloads. As such, ionic-plugin-deeplinks popularity was classified as popular.
We found that ionic-plugin-deeplinks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.