{"versions":{"0.0.1":{"name":"cordova-plugin-shortcuts-android","version":"0.0.1","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"fa5d914d216a1638ab5865c5f35e0900370b6a43","_id":"cordova-plugin-shortcuts-android@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"dist":{"integrity":"sha512-1C00+oxGqzpL72dhx+8Wr4s3PonznU6YkDvE+irYkGsEsBTlRyZ7L/Z70EgWcKQGqYGMPsBz7RvIEfe2yV+UXg==","shasum":"3fb6e8e98eadc63637845213c70bcbdceb14b9a1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.0.1.tgz","size":5959},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-shortcuts-android-0.0.1.tgz_1510523754259_0.16777787823230028"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:34:11.135Z","contributors":[]},"0.1.0":{"name":"cordova-plugin-shortcuts-android","version":"0.1.0","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"0646f18bb6d8ff50cec91d45f5ffffecd8b5041b","_id":"cordova-plugin-shortcuts-android@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"dist":{"integrity":"sha512-f/+JPEjzIn0EGiaVaGG9gyi84z52pnTnfXDqI1kZ2oRyVGJZ5ZboI//SYQ1MB4Ut+y2sgbvEaQ+6cBBnyjFvGQ==","shasum":"c3c5e4e61b9851812e7c8ff8fbbb05d0b237d497","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.1.0.tgz","size":6456},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-shortcuts-android-0.1.0.tgz_1511084228891_0.3436840695794672"},"directories":{},"_cnpmcore_publish_time":"2021-12-23T04:34:12.054Z","contributors":[]},"0.1.1":{"name":"cordova-plugin-shortcuts-android","version":"0.1.1","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"4d3db42290511cac32b96f76bd3fa8c5d6d87fef","_id":"cordova-plugin-shortcuts-android@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"dist":{"integrity":"sha512-YviViKQ3fd3IcMMJAlMJxqMKF0m3aXUgd1nYFQUuxEwBactLcuA1ev1tb7KEd+cH6VeTAm/qtfjXbQFPZE7lEw==","shasum":"22702285dfdecaf412cf89ab4f90fc614ffd4784","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.1.1.tgz","fileCount":7,"unpackedSize":27689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFdy4CRA9TVsSAnZWagAARksP+wVcW/hbBxyb703Q5e3V\nj9Mtt0VNd3e8qsCGCeJOr+jQ6xbn9x5/kvTTHLUQ08s4kvukg2iSmZBXhk1B\n22kI0s2jI4sF5/KUOESUkXzmJdfjUjCjzHCpSyca8LQE+kFSABIifAp9vttY\nmBaunhsOvtPUjiPvUOOQMoMgr+LKzjGN+ifRvs0M/7o5xm0qmbBV/4HnUOhy\niBejYXSIQzypxYHq3FG+4teuWm0BaB4FMsuZmUUyRpRmghzcUSDLeC0KM/Ph\nYIuAbuKfDmSEtPd8Vrnq7/gZ6nWRa2FOZWB6YaEBf8w0xasSEKVtleBMDGER\nZ5ZWKMHEpCO54ZOwQd33W/MTw4jk4x3iaRWFVfr48Zr3rHwodbKSm6S2ggvg\nMZV/R0hWYyyauJj1VRcjPe/gnmjHlruXeXvEG2WpP2yIYLkQQm5qFuWWutta\nrqUjHveOYlbf/Ac86NU8w++D+/8F60FCRC7ZB5opAuwfKw/E0Y9bdQlrYMoS\n7s0SIq8ESIhjZJ74wqK1g7RHWoIBgtYLbBhja9hSzWFIB/y8d3Go5i5JN0Fd\nsxzoPRGQCV5BFIVzvckxQq8REYnNM73ap8cfSsuEMLl8OQcn/QLcwojpI1CL\nPsVUlYYkPxucTrR/K970GeZJO/hP0a3CBp/wkwp5ojrIJMmpLDLUzpWOVQKu\nVX91\r\n=3BOy\r\n-----END PGP SIGNATURE-----\r\n","size":6544},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-shortcuts-android_0.1.1_1544936632039_0.6017635083782624"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-23T04:34:12.981Z","contributors":[]},"0.1.2":{"name":"cordova-plugin-shortcuts-android","version":"0.1.2","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"9d7bc27b180781f6cba5b0448fa2ef85bc125609","_id":"cordova-plugin-shortcuts-android@0.1.2","_nodeVersion":"18.19.0","_npmVersion":"9.6.4","dist":{"integrity":"sha512-0yy4qFx08Khlv5KuWxj4v1bm6aTcfUZhxT9pGMRC0t6d3Qoto+jwF5YWZYvQSNyYk3J17bmgRSE4XAZYmur0Cw==","shasum":"885666d4098c7635cd4ba3950a138b7754aeafdf","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.1.2.tgz","fileCount":7,"unpackedSize":27696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj6mICNWlK46t+bc7YfiKhQnNJOTiTwAQRrsDdo/ZauAIhAPkvKLSz6xfigZPIL5cDOcGtIBw++eSD8aPpGRwvQf7v"}],"size":6632},"_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-shortcuts-android_0.1.2_1725151129910_0.18511847582507124"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-01T00:38:50.092Z","publish_time":1725151130092,"_source_registry_name":"default","contributors":[]},"0.1.3":{"name":"cordova-plugin-shortcuts-android","version":"0.1.3","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"5e354d441af8190a6ff88358f04931de2cc41134","_id":"cordova-plugin-shortcuts-android@0.1.3","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-nfovuTlmZ7z7lrjtnG/xi+UELaIqA3HelX7kY184QWNm8W0//vyok/L4OO9bZ8vg7sR6cGD4u/WqmWjpZ2hAzg==","shasum":"b48f105258ef629f6f25d8bdc4e7f23a3833fb74","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.1.3.tgz","fileCount":10,"unpackedSize":32995,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFHDECiRo7G8T0UYOpcT7VNoy5lruECr78LxdzmpQ4KeAiBiOiHwb7pOi8Z8VfpF4amwrp3eCf0pz7Bj3ndgxp7J4A=="}],"size":8405},"_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-plugin-shortcuts-android_0.1.3_1786597161721_0.5584757402195888"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-13T04:59:21.861Z","publish_time":1786597161861,"_source_registry_name":"default","contributors":[]},"0.1.4":{"name":"cordova-plugin-shortcuts-android","version":"0.1.4","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"gitHead":"2aa505e9ccbca6f6ee5eed0b7179a6ac770b616f","_id":"cordova-plugin-shortcuts-android@0.1.4","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-HEKQqvHBb9O+BdQgA2/Txga5jeV46nwMqjMVbSJtd30DBShukODZJeSxg1SoMIbfjmksKcSVOIPgodNaZT1VyQ==","shasum":"b0ba767285db5769545cf0c97207c7255b678323","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.1.4.tgz","fileCount":10,"unpackedSize":34575,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC1+25uz6e2ECroIpBaP9aEN6xlF4TQHEWlaM/7jmJNJQIhALerPIqQFb408FNZnjKyLBi/XOuhhkr9XEaG80aFfP7o"}],"size":8685},"_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-plugin-shortcuts-android_0.1.4_1786682136442_0.031385937631046135"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-14T04:35:36.596Z","publish_time":1786682136596,"_source_registry_name":"default","contributors":[]},"0.2.0":{"name":"cordova-plugin-shortcuts-android","version":"0.2.0","description":"Cordova plugin for Android to create app shortcuts and handle intents.","main":"index.js","scripts":{"test":"cd tests/android && ./gradlew test"},"repository":{"type":"git","url":"git+https://github.com/avargaskun/cordova-plugin-shortcuts-android.git"},"author":{"name":"avargaskun"},"license":"MIT","bugs":{"url":"https://github.com/avargaskun/cordova-plugin-shortcuts-android/issues"},"homepage":"https://github.com/avargaskun/cordova-plugin-shortcuts-android#readme","keywords":["ecosystem:cordova","cordova-android","shortcut","intent","android"],"devDependencies":{"cordova-android":"^14.0.0"},"gitHead":"c8ec1dcd2d4879d8bbb5ddf69c7e874874fb7bfb","_id":"cordova-plugin-shortcuts-android@0.2.0","_nodeVersion":"24.13.1","_npmVersion":"11.8.0","dist":{"integrity":"sha512-DT5nq1frr2cqiCRmmBOLn0zMzzjKzrMsaVhwNsi5e3hMiY/1ha8F/9mSFgebjKSTLhD6fWb2zBsRF5ralRy9mw==","shasum":"998d68779f4fe21bd2a229656699e28f86ad0714","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/cordova-plugin-shortcuts-android/-/cordova-plugin-shortcuts-android-0.2.0.tgz","fileCount":10,"unpackedSize":34634,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCave/GOQNw9pU+VS79fpev+EXFJ3XRSYqDqBTpekR+ewIhAP5aZYrpkEJrZ8j1Y5fpNGV2xjaSqZvF0otpYgKiqy/F"}],"size":9004},"_npmUser":{"name":"anonymous","email":"avargaskun_npm@outlook.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"avargaskun_npm@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cordova-plugin-shortcuts-android_0.2.0_1786765315251_0.07455061058506529"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-08-15T03:41:55.417Z","publish_time":1786765315417,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.2.0"},"name":"cordova-plugin-shortcuts-android","time":{"created":"2022-01-27T16:29:47.516Z","modified":"2026-08-15T03:42:19.959Z","0.0.1":"2017-11-12T21:55:54.366Z","0.1.0":"2017-11-19T09:37:08.988Z","0.1.1":"2018-12-16T05:03:52.177Z","0.1.2":"2024-09-01T00:38:50.092Z","0.1.3":"2026-08-13T04:59:21.861Z","0.1.4":"2026-08-14T04:35:36.596Z","0.2.0":"2026-08-15T03:41:55.417Z"},"readme":"# Android Shortcuts Plugin for Cordova \n\n## DESCRIPTION\n\nUse this plugin to create shortcuts in Android. Use this plugin to handle Intents on your application.\n\nFor more information on Android App Shortcuts: https://developer.android.com/guide/topics/ui/shortcuts.html\n\nFor more information on Android Intents: https://developer.android.com/guide/components/intents-filters.html\n\nThe work that went into creating this plug-in was inspired by the existing plugins: [cordova-plugin-shortcut](https://github.com/jorgecis/ShortcutPlugin) and [cordova-plugin-webintent2](https://github.com/okwei2000/webintent).\n\n## LICENSE\n\n\tThe MIT License\n\n\tCopyright (c) 2013 Adobe Systems, inc.\n\tportions Copyright (c) 2013 Jorge Cisneros jorgecis@gmail.com\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n\n\n## How to install it\n\n  cordova plugins add cordova-plugin-shortcuts-android\n\n## How to use it\n\n### Setting Static Shortcuts\n\n1. Copy `resources` to project's root\n\n```xml\n<platform name=\"android\">\n    <resource-file src=\"resources/android/shortcuts/xml/shortcuts.xml\" target=\"app/src/main/res/xml/shortcuts.xml\" />\n    <resource-file src=\"resources/android/shortcuts/values/shortcuts.xml\" target=\"app/src/main/res/values/shortcuts.xml\" />\n    <resource-file src=\"resources/android/shortcuts/drawable/static_shortcut.xml\" target=\"app/src/main/res/drawable/static_shortcut.xml\" />\n    <edit-config file=\"app/src/main/AndroidManifest.xml\" mode=\"add\" target=\"/manifest/application/activity\" xmlns:android=\"http://schemas.android.com/apk/res/android\">\n        <meta-data android:name=\"android.app.shortcuts\" android:resource=\"@xml/shortcuts\" />\n    </edit-config>\n</platform>\n\n```\n\n2. `resources/android/shortcuts/xml/shortcuts.xml` replace `{{BUNDLE_ID}}` with your application id\n\n### Checking if Dynamic Shortcuts are supported\n\nDynamic shortcuts require SDK 25 or later. Use `supportsDynamic` to check whether the current device meets those requirements.\n\n```javascript\nwindow.plugins.Shortcuts.supportsDynamic(function(supported) { \n\tif (supported)\n\t\twindow.alert('Dynamic shortcuts are supported');\n\telse\n\t\twindow.alert('Dynamic shortcuts are NOT supported');\n}, function(error) {\n\twindow.alert('Error: ' + error);\n})\n```\n\n### Checking if Pinned Shortcuts are supported\n\nPinned shortcuts require SDK 26 or later. Use `supportsPinned` to check whether the current device meets those requirements.\n\n```javascript\nwindow.plugins.Shortcuts.supportsPinned(function(supported) { \n\tif (supported)\n\t\twindow.alert('Pinned shortcuts are supported');\n\telse\n\t\twindow.alert('Pinned shortcuts are NOT supported');\n}, function(error) {\n\twindow.alert('Error: ' + error);\n})\n```\n\n### Setting the application Dynamic Shortcuts\n\nUse `setDynamic` to set the Dynamic Shortcuts for the application, all at once. The shortcuts provided as a parameter will override any existing shortcut. Use an empty array to clear out existing shortcuts.\n\n```javascript\nvar shortcut = {\n\tid: 'my_shortcut_1',\n\tshortLabel: 'Short description',\n\tlongLabel: 'Longer string describing the shortcut',\n\ticonBitmap: '<Bitmap for the shortcut icon, base64 encoded>', // Optional; takes precedence over the other icon fields\n\ticonAdaptiveBitmap: true, // Optional; use with iconBitmap on Android 8.0+ (API 26+): https://developer.android.com/develop/ui/views/launch/icon_design_adaptive\n\ticonFromResource: \"ic_playlist_play_red\", // Optional alternative; filename w/o extension in res/drawable-* (hdpi,mdpi..)\n\t// If the named drawable cannot be found, the application icon is used instead\n\tintent: {\n\t\taction: 'android.intent.action.RUN',\n\t\tcategories: [\n\t\t\t'android.intent.category.TEST', // Built-in Android category\n\t\t\t'MY_CATEGORY' // Custom categories are also supported\n\t\t],\n\t\tflags: 67108864, // FLAG_ACTIVITY_CLEAR_TOP\n\t\tdata: 'myapp://path/to/launch?param=value', // Must be a well-formed URI\n\t\textras: {\n\t\t\t'android.intent.extra.SUBJECT': 'Hello world!', // Built-in Android extra (string)\n\t\t\t'MY_BOOLEAN': true, // Custom extras are also supported (boolean, number and string only)\n\t\t}\n\t}\n}\nwindow.plugins.Shortcuts.setDynamic([shortcut], function() {\n\twindow.alert('Shortcuts were applied successfully');\n}, function(error) {\n\twindow.alert('Error: ' + error);\n})\n```\n\n### Adding a Pinned Shortcut to the launcher\n\nUse `addPinned` to add a new Pinned Shortcut to the launcher.\n\n```javascript\nvar shortcut = {\n\tid: 'my_shortcut_1',\n\tshortLabel: 'Short description',\n\tlongLabel: 'Longer string describing the shortcut',\n\ticonBitmap: '<Bitmap for the shortcut icon, base64 encoded>', // Optional; takes precedence over the other icon fields\n\ticonAdaptiveBitmap: true, // Optional; use with iconBitmap on Android 8.0+ (API 26+): https://developer.android.com/develop/ui/views/launch/icon_design_adaptive\n\ticonFromResource: \"ic_playlist_play_red\", // Optional alternative; filename w/o extension in res/drawable-* (hdpi,mdpi..)\n\t// If the named drawable cannot be found, the application icon is used instead\n\tintent: {\n\t\taction: 'android.intent.action.RUN',\n\t\tcategories: [\n\t\t\t'android.intent.category.TEST', // Built-in Android category\n\t\t\t'MY_CATEGORY' // Custom categories are also supported\n\t\t],\n\t\tflags: 67108864, // FLAG_ACTIVITY_CLEAR_TOP\n\t\tdata: 'myapp://path/to/launch?param=value', // Must be a well-formed URI\n\t\textras: {\n\t\t\t'android.intent.extra.SUBJECT': 'Hello world!', // Built-in Android extra (string)\n\t\t\t'MY_BOOLEAN': true, // Custom extras are also supported (boolean, number and string only)\n\t\t}\n\t}\n}\nwindow.plugins.Shortcuts.addPinned(shortcut, function() {\n\twindow.alert('Shortcut pinned successfully');\n}, function(error) {\n\twindow.alert('Error: ' + error);\n})\n```\n\n### Querying current Intent\n\nUse `getIntent` to get the Intent that was used to launch the current instance of the Cordova activity.\n\n```javascript\nwindow.plugins.Shortcuts.getIntent(function(intent) {\n\twindow.alert(JSON.stringify(intent));\n})\n```\n\nA shortcut is reported only once. The keys `shortcut` and anything under the `shortcut.` namespace (for example `shortcut.action`) are reserved by the plugin: they are removed from the Intent after the first `getIntent` call, so a later call in the same session — after a resume, or a second read on the JS side — will not report the same shortcut again. Every other extra is left untouched. Use `onNewIntent` to be notified when a shortcut is activated while your app is already running.\n\n### Subscribe to new Intents\n\nUse `onNewIntent` to register a callback to be executed every time a new Intent is sent to your Cordova activity. Note that in some conditions this callback may not be executed. \n\nFor more information see the documentation for [Activity.onNewIntent(Intent)](https://developer.android.com/reference/android/app/Activity.html#onNewIntent(android.content.Intent))\n\n```javascript\nwindow.plugins.Shortcuts.onNewIntent(function(intent) {\n\twindow.alert(JSON.stringify(intent));\n})\n```\n\nCall with an empty callback to de-register the existing callback.\n\n```javascript\nwindow.plugins.Shortcuts.onNewIntent(); // De-register existing callback\n```\n\n### How to use with Ionic\n\nAn Ionic Native wrapper is available in [`@awesome-cordova-plugins`](https://github.com/danielsogl/awesome-cordova-plugins).\n\n```bash\n\nnpm i @awesome-cordova-plugins/shortcuts-android\n\n```\n\n```ts\nimport { inject, Injectable } from '@angular/core';\nimport { ShortcutsAndroid, Intent } from '@awesome-cordova-plugins/shortcuts-android/ngx';\nimport { filter, from, merge } from 'rxjs';\n\n@Injectable()\nexport class ShortCutsService{\n  private shortcutsAndroid = inject(ShortcutsAndroid);\n  onNewIntent() {\n    return merge(from(this.shortcutsAndroid.getIntent()), this.shortcutsAndroid.onNewIntent()).pipe(\n      filter((intent: Intent) => !!intent?.extras?.shortcut)\n    );\n  }\n}\n\n```\n\n## CHANGES\n\n* v0.2.0 Fall back to the application icon when `iconFromResource` names a drawable that cannot be found, instead of failing or producing an unloadable icon. Apply adaptive bitmap icon rendering (safe-zone masking) to both dynamic and pinned shortcuts on Android 7.1 and below (the compatibility library renders the safe-zone mask itself). Internally, dynamic and pinned shortcuts now share a single icon-selection helper. Adds a Robolectric-based Java test suite under `tests/android` and a GitHub Actions workflow that runs it.\n* v0.1.4 Support adaptive bitmap icons on Android 8.0+ and fix custom bitmap icons being replaced by the application icon. Icon selection now uses `iconBitmap`, then `iconFromResource`, and finally the application icon; the same behavior applies to dynamic and pinned shortcuts.\n* v0.1.3 `getIntent` reports a shortcut only once — the reserved `shortcut` and `shortcut.*` extras are consumed after the first call. Preserve the launch intent on cold start so `getIntent` keeps action and data when another plugin replaces the activity Intent. Add resource templates for static shortcuts\n* v0.1.2 BREAKING: Do not append package name to keys under `Intent.Extras` dictionary\n* v0.1.1 Support loading icons from drawable resources\n* v0.1.0 Original version","users":{}}