{"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"keywords":["autostart","ecosystem:cordova","cordova-android"],"dist-tags":{"latest":"2.3.0"},"author":{"name":"Toni Korin"},"description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","readme":"# Autostart plugin #\r\nThis [Cordova][cordova] plugin will start automatically your __Android__ app or service after the every boot or the auto-update of your application. You can enable or disable the autostart function in your app. The plugin is also compatible with [PhoneGap Build][PGB].\r\n\r\n## Supported Platforms ##\r\n- __Android__\r\n- __macOS__\r\n\r\n## Usage ##\r\n\r\n#### Enable the automatic startup of your app after the boot ####\r\n```javascript\r\ncordova.plugins.autoStart.enable();\r\n```\r\nNot applicable in macOS.\r\n#### Enable the automatic startup of your service after the boot ####\r\n```javascript\r\ncordova.plugins.autoStart.enableService(\"yourServiceClassName\");\r\n```\r\nIn macOS, pass the bundle identifier of a helper application to launch it at startup.\r\n#### Disable the automatic startup of your app and service after the boot ####\r\nThis is the default action if you have never called the \"enable\" function.\r\n```javascript\r\ncordova.plugins.autoStart.disable();\r\n```\r\n\r\n#### Indication of automatic startup ####\r\nIf the automatic startup has occured, the Android intent includes the attribute \"cordova_autostart\" with value true. See more instructions to utilize it at related plugins.\r\n\r\n#### macOS helper application\r\nSandboxed macOS applications are not allowed to write arbitrary files, which means that they cannot register themselves as [Launch Agents](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html). Instead, Apple allows the registration of a helper application, embedded in the main app's bundle, to start on boot and launch the main app.\r\n\r\nThe `enableService` and `disable` actions will register/unregister the helper application to launch on startup. It is the caller's responsibility to implement the helper app. See Apple's [documentation](https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLoginItems.html) for more details.\r\n\r\n## Related plugins ##\r\n- [cordova-plugin-intent][plugin-intent] to check out the \"cordova_autostart\" from extras of Android intent, if your app has automatically started. See more details from [here][stackoverflow_2].\r\n- [cordova-android-movetasktoback][plugin-movetasktoback] to move your app to background\r\n- [cordova-plugin-background-mode][plugin-background-mode] to keep your app running\r\n\r\n## Installation ##\r\nThe plugin can either be installed from git repository, from local file system through the [Command-line Interface][CLI] or cloud based through [PhoneGap Build][PGB].\r\n\r\n#### Local development environment ####\r\nFrom master:\r\n```bash\r\n# ~~ from master branch ~~\r\ncordova plugin add https://github.com/ToniKorin/cordova-plugin-autostart.git\r\n```\r\nfrom a local folder:\r\n```bash\r\n# ~~ local folder ~~\r\ncordova plugin add cordova-plugin-autostart --searchpath path\r\n```\r\nor to use the latest stable version:\r\n```bash\r\n# ~~ stable version ~~\r\ncordova plugin add cordova-plugin-autostart@2.3.0\r\n```\r\n\r\nTo remove the plug-in, run the following command:\r\n```bash\r\ncordova plugin rm cordova-plugin-autostart\r\n```\r\n\r\n#### PhoneGap Build ####\r\nAdd the following xml line to your config.xml:\r\n```xml\r\n<gap:plugin platform=\"android\" name=\"cordova-plugin-autostart\" version=\"2.3.0\" source=\"npm\"/>\r\n```\r\n\r\n## Remarks ##\r\n1. Installation to the SD card will prevent the automatic start of your app after the boot. See more details from [here][stackoverflow_1].\r\n2. During the boot your app may start before it has no network connectivity. Your app have to take care of it e.g. using the cordova-plugin-network-information.\r\n\r\n## History ##\r\nCheck the [Change Log][changelog].\r\n\r\n## License ##\r\n\r\nThis software is released under the [Apache 2.0 License][apache2_license].\r\n\r\n© 2015 Toni Korin\r\n\r\n[cordova]: https://cordova.apache.org\r\n[CLI]: http://cordova.apache.org/docs/en/edge/guide_cli_index.md.html#The%20Command-line%20Interface\r\n[PGB]: http://docs.build.phonegap.com/en_US/index.html\r\n[PGB_plugin]: https://build.phonegap.com/\r\n[changelog]: https://github.com/ToniKorin/cordova-plugin-autostart/blob/master/CHANGELOG.md\r\n[apache2_license]: http://opensource.org/licenses/Apache-2.0\r\n[stackoverflow_1]: http://stackoverflow.com/questions/9556944/broadcastreceiver-not-working-when-app-is-installed-on-sd-card\r\n[stackoverflow_2]: https://stackoverflow.com/questions/39218893/get-extras-in-cordova-app\r\n[plugin-intent]: https://github.com/napolitano/cordova-plugin-intent\r\n[plugin-movetasktoback]: https://github.com/mayflower/cordova-android-movetasktoback\r\n[plugin-background-mode]: https://github.com/katzer/cordova-plugin-background-mode\r\n","repository":{"type":"git","url":"git+https://github.com/ToniKorin/cordova-plugin-autostart.git"},"users":{"heshalianren":true,"b3website":true},"bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"license":"Apache 2.0","versions":{"1.3.0":{"name":"cordova-plugin-autostart","version":"1.3.0","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"com.tonikorin.cordova.plugin.autostart","platforms":["android"]},"repository":{"type":"git","url":"https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"527447e85d1df1d77ad31be4a213786bdec57b74","_id":"cordova-plugin-autostart@1.3.0","scripts":{},"_shasum":"1c51ac65c4ec98ddf5fc4be7e84ce587103fb3b2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"1c51ac65c4ec98ddf5fc4be7e84ce587103fb3b2","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-1.3.0.tgz","integrity":"sha512-kpsFxpOpFfZWEHZa9j13mVRj+ze8ybHW9MTGmFz25SoUO9J0UH3yPMZdMGUdirNLm7JFV6cmyu8jYr8fWKdSpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAunUhJztOvFPnoxfZB2Rcf5CB0p1wVFyGeuoawparUAiEA/r5jzAcSyyJS8nsNd+b4nLMVS3qQQ5KIv5UJoomBQ5A="}]},"directories":{}},"2.0.0":{"name":"cordova-plugin-autostart","version":"2.0.0","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"cordova-plugin-autostart","platforms":["android"]},"repository":{"type":"git","url":"https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"c4551ec72941736eb27f87473f36679ce3251506","_id":"cordova-plugin-autostart@2.0.0","scripts":{},"_shasum":"9e32bcee2c4b28ee57f494a4928a6f8ef412d3d8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"9e32bcee2c4b28ee57f494a4928a6f8ef412d3d8","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-2.0.0.tgz","integrity":"sha512-rfIhGGXI66W95+Sgld2WVK84kqQL5EIbRaDCmGPgTJbkXlbvR+JGSjqzBdO1vN5Qvvyrysg4PY5UrNLxA1TI/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCICRRBh2qbtLWAmDPHqVHn/sZ8vuf1dIDcj0oQ+R/Qs9sAh8aA2N+dVBiYKsYepluyqlRKthwNBqUnjWeG5YshQ8D"}]},"directories":{}},"2.0.1":{"name":"cordova-plugin-autostart","version":"2.0.1","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"cordova-plugin-autostart","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"37ca3bb25ab88eb27d9d5ff7d20259da9d0c491e","_id":"cordova-plugin-autostart@2.0.1","scripts":{},"_shasum":"0cb37101cb8b471735f8e917f71998c2826dda36","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"0cb37101cb8b471735f8e917f71998c2826dda36","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-2.0.1.tgz","integrity":"sha512-8VUWc5oulR9uOLhI3bm54a0a6GPL7hgasX9F3Wzyr3KiA6oaRqBv0J/rO1t4FD5a0up907BUjW2/ZVPxKF3+rA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4KK4/p5pVQybooNtutI5ru+hXziSCiJt7LCKTC2KTrQIhAKcB13SSdXN5I1VhlCd5gXkkVRD+IQwRPS7k2afBJQq3"}]},"directories":{}},"2.1.0":{"name":"cordova-plugin-autostart","version":"2.1.0","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"cordova-plugin-autostart","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"432a8078dae60cddb7978b3a212fdb2c80ae067e","_id":"cordova-plugin-autostart@2.1.0","scripts":{},"_shasum":"82d85bb4d8be5638cba76b6eb0f3e92802261b3e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"8.9.1","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"82d85bb4d8be5638cba76b6eb0f3e92802261b3e","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-2.1.0.tgz","integrity":"sha512-MKqKeMvKnKdXH83fS8Vl4Z9ynYlVaizlh3a9/TBmuMYHY1rNCQ8q0xN+BXyQpV0hbG/AZEjtaTil1TgWK3rPlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5PFWo5d75dr0SxQO+GpyjQaGThPb7SmK+JhGGLLLWIwIgSp10x4NpckPZFNyMNZks6qr7L5qPupWDHKs4bdgV0HY="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-autostart-2.1.0.tgz_1517036572604_0.9754898932296783"},"directories":{}},"2.2.0":{"name":"cordova-plugin-autostart","version":"2.2.0","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"cordova-plugin-autostart","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"3a19254b9f9a55a73558b76f758b19b11aecd143","_id":"cordova-plugin-autostart@2.2.0","scripts":{},"_shasum":"e5dda5ef860d3ab770dfc982eb7b595a0639d25b","_from":".","_npmVersion":"3.10.9","_nodeVersion":"8.9.1","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"e5dda5ef860d3ab770dfc982eb7b595a0639d25b","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-2.2.0.tgz","fileCount":14,"unpackedSize":31140,"integrity":"sha512-igBaze5/i1IAkefUa/y1ml8jfCuCzy1C3/C6sn4tr2TXFwtsELHjpcXGf2+kDU9bLNPIratrPqSb1hILIaiR0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHf7CoXEbCxgZHa7RhapT2eVRo7x2gt2Ukf1X1DoJPYLAiBNyQLFndSdL4j8dLwEXTldp++0KNBpz0/l3JfROThDXw=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-autostart_2.2.0_1518595966961_0.6063098538027469"},"_hasShrinkwrap":false},"2.3.0":{"name":"cordova-plugin-autostart","version":"2.3.0","description":"\r\n        The application will be automatically started after the every boot and the automatic update of your application. \r\n        You can enable or disable the autostart function in your app.\r\n    ","cordova":{"id":"cordova-plugin-autostart","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ToniKorin/cordova-plugin-autostart.git"},"keywords":["autostart","ecosystem:cordova","cordova-android"],"engines":[{"name":"cordova","version":">=3.0.0"}],"author":{"name":"Toni Korin"},"license":"Apache 2.0","bugs":{"url":"https://github.com/ToniKorin/cordova-plugin-autostart/issues"},"homepage":"https://github.com/ToniKorin/cordova-plugin-autostart","gitHead":"5bda6922a31f3a8aa11a4d9514e810d6028c6040","_id":"cordova-plugin-autostart@2.3.0","scripts":{},"_shasum":"9c22fb694e7b4fd7b407c655b5542504b097bf9c","_from":".","_npmVersion":"3.10.9","_nodeVersion":"8.9.1","_npmUser":{"name":"anonymous","email":"toni.korin@gmail.com"},"maintainers":[{"name":"anonymous","email":"toni.korin@gmail.com"}],"dist":{"shasum":"9c22fb694e7b4fd7b407c655b5542504b097bf9c","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/cordova-plugin-autostart/-/cordova-plugin-autostart-2.3.0.tgz","fileCount":15,"unpackedSize":35211,"integrity":"sha512-jnOjmh1MsX79c5B2zYQdTLp4a3tYSvcHaEPMx81wRgTip+VLDS0k44LmSTJGFXvLoid9GyI9xq3T0u/otEgP3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD014I1yGGYMZcTXXkeTqIBqeg8rhvBGaZhea/yLFgprAIgX0yjPHSHY/zlksjxs2KjnK4dNqU6ZTBZq9APwuUvgXQ="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-plugin-autostart_2.3.0_1519812463775_0.5782424571630513"},"_hasShrinkwrap":false}},"name":"cordova-plugin-autostart","time":{"modified":"2022-06-13T23:50:43.717Z","created":"2015-09-20T16:03:54.123Z","1.3.0":"2015-09-20T16:03:54.123Z","2.0.0":"2015-10-06T20:08:04.356Z","2.0.1":"2015-12-30T21:18:27.478Z","2.1.0":"2018-01-27T07:02:52.768Z","2.2.0":"2018-02-14T08:12:47.772Z","2.3.0":"2018-02-28T10:07:43.824Z"},"readmeFilename":"README.md","homepage":"https://github.com/ToniKorin/cordova-plugin-autostart"}