UNPKG

cordova-plugin-developer-mode-check

Version:

Cordova plugin for iOS to check if developer mode is enabled

24 lines (18 loc) 706 B
# cordova-plugin-developer-mode-check (iOS via SecCode) This build avoids `SecTask.h` entirely by querying entitlements with `SecCodeCopySelf` + `SecCodeCopySigningInformation` and reading `kSecCodeInfoEntitlementsDict`. Signals considered: - Simulator - Debugger attached (P_TRACED) - `get-task-allow` entitlement (development builds) - `DYLD_INSERT_LIBRARIES` present > iOS does not expose a public API to read SettingsDeveloper Mode toggle. These are practical indicators. ## Install ```bash cordova plugin add /path/to/cordova-plugin-developer-mode-check ``` ## Use ```js cordova.plugins.developerModeCheck.isEnabled(function(enabled){ if (enabled) { /* block sensitive action */ } }); ```