Giter Site home page Giter Site logo

mzirintu / cordova-plugin-jailbreak-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leecrossley/cordova-plugin-jailbreak-detection

1.0 1.0 0.0 129 KB

Cordova / PhoneGap Jailbreak Detection Plugin for Apache Cordova >= 3.0.0

Home Page: http://ilee.co.uk

Objective-C 87.75% JavaScript 12.25%

cordova-plugin-jailbreak-detection's Introduction

Cordova Jailbreak Detection Plugin npm version

Use this plugin to add an extra layer of security for your app, by detecting if the device running the app is jailbroken.

Unfortunately, there are 10s of millions of jailbroken iOS devices, so preventing your app from running on a jailbroken device could lead to a limited userbase and/or bad App Store reviews.

I recommend you use this plugin to block certain features in your app rather than prevent it from running entirely.

Install

Locally

cordova plugin add https://github.com/leecrossley/cordova-plugin-jailbreak-detection.git

You do not need to reference any JavaScript, the Cordova plugin architecture will add a jailbreakdetection object to your root automatically when you build.

PhoneGap build

Add the following to your config.xml to use version 0.1.0 (you can also omit the version attribute to always use the latest version available on PhoneGap build):

<gap:plugin name="uk.co.ilee.jailbreakdetection" version="0.1.0" />

For more information, see the PhoneGap build website.

Usage

isJailbroken

jailbreakdetection.isJailbroken(successCallback, failureCallback);
  • => successCallback is called with true if the device is Jailbroken, otherwise false
  • => failureCallback is called if there was an error determining if the device is Jailbroken

Platform Support

iOS only.

License

MIT License

cordova-plugin-jailbreak-detection's People

Contributors

leecrossley avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.