-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dos #1
Comments
Also it does not work withe the following commands. It works with RNUnlockDevice.unlock() |
Hi alipetarian ,
nor with
|
finally made it work after changing source:
|
Great to know that you got it working. |
Hi does this still work? i have just tested and it does not seem to currently work. I can not find any alternative either. |
@DrSchmurge could you please clarify your post. You reference react-native-invoke-app not this lib ? |
Yes, sorry for that. wrong issue thread. I use unlock-device and invoke-app together to invoke app from background and show it on locked screen also |
by the way, I use react-native-unlock-device in my project, and it seems to work. But it needs special permissions in AndroidManifest, check you have them there:
I moved the code to NativeModule, it consists of just few lines, and works fine:
And in JS code, I call it by unlock() only, no need of .then
|
@DrSchmurge you are awesome. Unlock device works perfectly with the standard docs (minus the naming issue) and your suggestion of adding to the android manifest. I will look at your native module also but am somewhat new to react-native. I am now at the stage of being able to unlock but like you have run into the issue of the app not unlocking when in the background. Could you possibly advise/share your work around ? I am attempting to run react-native-background-timer and call invokeApp() which is not working out for me. I beieve this may be due to me needing to run this from within a headless function ? thanks again you have really helped me out. |
Hi, you are welcome. I will try to share my work, but in a while, not really much free time now( |
Hi, Please update docs. The correct command to install library is:
npm i react-native-unlock-device
and for linking
react-native link react-native-unlock-device
The text was updated successfully, but these errors were encountered: