Skip to content
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

How to make notification uncancellable/unremovable? #52

Open
prtkkmrsngh opened this issue Jun 21, 2016 · 4 comments
Open

How to make notification uncancellable/unremovable? #52

prtkkmrsngh opened this issue Jun 21, 2016 · 4 comments

Comments

@prtkkmrsngh
Copy link

No description provided.

@DarrylD
Copy link

DarrylD commented Jul 26, 2016

I too wonder for a stay-alive feature

@Batistleman
Copy link

I think we should implement 'ongoing':

http://stackoverflow.com/questions/13427204/non-removable-notification

@Batistleman
Copy link

I think the fix should be quite easy:

adding

.setOngoing(attributes.ongoing)

right after this line:
https://github.com/Neson/react-native-system-notification/blob/master/android/src/main/java/io/neson/react/notification/Notification.java#L128

(and possibly also setting the default value)

@Batistleman
Copy link

I created a pull request, in my setup it works perfectly, please give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants