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

Add a way to update notification progress #77

Open
jpmonettas opened this issue Sep 20, 2016 · 1 comment
Open

Add a way to update notification progress #77

jpmonettas opened this issue Sep 20, 2016 · 1 comment

Comments

@jpmonettas
Copy link

Hello!
First of all thx for the great library!
Is there currently a way to update the notification progress?

Thanks

@oroce
Copy link

oroce commented Oct 28, 2016

Hey,

if you follow the implementation you can see the whn you call Notification.create(), it will call the native module's rCreate method: https://github.com/neson/react-native-system-notification/blob/master/index.android.js#L18
The rCreate method does call the NotificationManager's createOrUpdate method: https://github.com/neson/react-native-system-notification/blob/3532efbe9e43f32465766732644a0ac8b02035d3/android/src/main/java/io/neson/react/notification/NotificationModule.java#L75

So if you keep using the same id for calling Notification.create() your notification will get updated.

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

2 participants