mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-16 05:15:44 +08:00
36 lines
976 B
Markdown
36 lines
976 B
Markdown
![]() |
# IRoot
|
|||
|
|
|||
|
```text
|
|||
|
$ ionic cordova plugin add cordova-plugin-iroot
|
|||
|
$ npm install @awesome-cordova-plugins/i-root
|
|||
|
```
|
|||
|
|
|||
|
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/iroot/)
|
|||
|
|
|||
|
Plugin Repo: [https://github.com/WuglyakBolgoink/cordova-plugin-iroot](https://github.com/WuglyakBolgoink/cordova-plugin-iroot)
|
|||
|
|
|||
|
Use this plugin to add an extra layer of security for your app by detecting if the device was rooted (on android) or jailbreaked (on iOS).
|
|||
|
|
|||
|
## Supported platforms
|
|||
|
|
|||
|
* Android
|
|||
|
* iOS
|
|||
|
|
|||
|
## Original Plugin Notes
|
|||
|
|
|||
|
### iOS - Postinstall
|
|||
|
|
|||
|
To avoid errors like
|
|||
|
|
|||
|
> -canOpenURL: failed for URL: "cydia://package/com.example.package" - error: "This app is not allowed to query for scheme cydia"
|
|||
|
|
|||
|
don’t forget to add `"cydia"` in `LSApplicationQueriesSchemes` key of `info.plist`. Otherwise `canOpenURL` will always return `false`.
|
|||
|
|
|||
|
```xml
|
|||
|
<xxx>
|
|||
|
<key>LSApplicationQueriesSchemes</key>
|
|||
|
<array>
|
|||
|
<string>cydia</string>
|
|||
|
</array>
|
|||
|
</xxx>
|
|||
|
```
|