Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Show contents of notification when phone is locked #750

Closed
rohand opened this issue Mar 24, 2016 · 3 comments
Closed

Show contents of notification when phone is locked #750

rohand opened this issue Mar 24, 2016 · 3 comments

Comments

@rohand
Copy link

rohand commented Mar 24, 2016

When phone is locked it shows "Contents Hidden".
Is there any way to override the phone settings via code/payload?

Platform and Version Android 5.0

Android 5.0

Cordova CLI version and cordova platform version

cordova --version       6.0.0
cordova platform version android    4.1.1

Plugin version

cordova plugin version 1.6.1
@macdonst
Copy link
Member

@rohand I'm curious what is your phone set to show?

Head to Settings and click Sound & Notification. There are three options to choose from in the "When device is locked" option at the bottom of the page: show all notifications, don't' show notifications at all and hide sensitive notification information. The last option -- which will still show an incoming notification, but not any of the content -- will only be available if you have a screen lock pin, pattern or password set up.

That said there is a way to set a notification public, private or secret so I'll add this as an enhancement.

@RanjitReddy
Copy link

you save my time.... Thank u @rohand

@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants