Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
cordova-android-referrer
Advanced tools
This plugin captures the referrer value passed when an android app is installed from a webpage and stores it in the applications shared preferences for later retrieval.
You'll typically want to use the AppPreferences plugin to pull the referrer value into your phonegap app for your javascript code to manipulate.
This plugin lets your app display different behavior based on where it was installed from. If you have a sports app, for example, and want to use the same codebase, but brand the app differently for different teams, you can use this plugin to capture whether the app was installed from the Denver Broncos or Washington Redskins page, and skin the app appropriately.
Don't forget when using this plugin that if an app is installed directly from Google Play, this plugin will not execute--the intent will never fire.
This plugin uses plugman
cordova plugins add https://github.com/8zrealestate/android-referrer-plugin
To use this plugin, add &referrer=xyz
to app install links on your webpages. For example:
http://market.android.com/details?id=com.yourid.here&referrer=textinreferrer
market://details?id=com.yourid.here&referrer=textinreferrer
The value in the referrer text (textinreferrer
above) will be stored as a string in your apps shared preferences object, under the key referrer
.
To test that the install referrer event is received by the plugin in your emulator:
run adb shell
and then
am broadcast -a com.android.vending.INSTALL_REFERRER \
-n <your package here>/com.eightz.mobile.cordova.plugin.android.referrer.Receiver \
--es "referrer" "textinreferrer"
&referrer=foo&bar
would result in a captured referrer
of foo
app-argument
text in Apple smart banners, be aware that app-argument
text block is required to be a url.FAQs
android-referrer-plugin =======================
We found that cordova-android-referrer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.