Git Product home page Git Product logo

cordova-plugin-locktask's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cordova-plugin-locktask's Issues

Not able to install plugin

Get the following message after running
cordova plugin add https://github.com/oddmouse/cordova-plugin-locktask.git

Error: Failed to fetch plugin https://github.com/oddmouse/cordova-plugin-locktask.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! cb() never called!

Update

This method seems to be outdated. Do you have any update or a new method I can use

Unable to set Device admin

When I run the command adb shell dpm set-device-owner my.package/.MySubclass I get the error

Error: Unknown admin: ComponentInfo{my.package/my.package.MySubclass}

Do you know what I'm doing wrong?

startlock admin mode still being disabled

I made it working with the device admin mode to startlock without prompt.

but now my problem is. i can still get out of the screen pin with hold + pressing menu and back key. All I thought only stopLock can do that?

Cannot read property 'locktask' of undefined

I've installed the plugin through Ionic and tried to run:
window.plugins.locktask.startLockTask(); but I'm getting:
"ionic.bundle.js:26794 TypeError: Cannot read property 'locktask' of undefined".
No idea why, I'm targeting API level 21. Could this be because of the Ionic 2 update?

Clarification on how to use this plugin

I have been trying to use this plugin for a while now and everytime I use something new it doesn't work. The solution is to simply write LockTask.startLockTask(); in the javascript where you want to use it.

Problem with owner app

I'm trying to bypass screen lock confirm dialog. App is an owner now, but i got an error using window.plugins.locktask.startLockTask(null, null, DeviceAdminExample);

Uncaught ReferenceError: DeviceAdminExample is not defined

UPDATE:
Error found. DeviceAdminExample should be provided in quotes: 'DeviceAdminExample'

Error in README

In stopLockTask part, your example is :

window.plugins.locktask.startLockTask(successCallback, errorCallback);

I think it should be

window.plugins.locktask.stopLockTask(successCallback, errorCallback);

Missing license

You have not specified under which license this project is released.
This way it cannot safely be reused by others.

Or am I missing something?

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.