Duration of notification?

Is there any way to set the duration of local notification?

Set the duration of what exactly?

the time it is shown to user, like for 5 seconds or so

How is it shown to you right now?
What platform?

              id: 1,
              text: 'something',
              sound: null

just something like this but with duration would be nice, both platforms

So you are talking about the Ionic Native Local Notification plugin. I corrected the wrong topic category. Please post a link to that plugin and its underlying Cordoa plugin so we can look at the docs.

Is this possible on an OS level at all or does the OS just decide how long to show notifications?