one signal : how to display notifications only wehn user is online?
up vote
0
down vote
favorite
I do use onesignal API to send/ receive push notifications.
Is there a way to send/receive web notification only when user is online: if offline, then push is discarded (online = browser opened)
ex: user1 has his browser closed. A notification is sent.
Normally, he will get it next time he opens his browser.
Is there a way a discard that notification ?
(sent when he was offline)
push-notification onesignal
add a comment |
up vote
0
down vote
favorite
I do use onesignal API to send/ receive push notifications.
Is there a way to send/receive web notification only when user is online: if offline, then push is discarded (online = browser opened)
ex: user1 has his browser closed. A notification is sent.
Normally, he will get it next time he opens his browser.
Is there a way a discard that notification ?
(sent when he was offline)
push-notification onesignal
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I do use onesignal API to send/ receive push notifications.
Is there a way to send/receive web notification only when user is online: if offline, then push is discarded (online = browser opened)
ex: user1 has his browser closed. A notification is sent.
Normally, he will get it next time he opens his browser.
Is there a way a discard that notification ?
(sent when he was offline)
push-notification onesignal
I do use onesignal API to send/ receive push notifications.
Is there a way to send/receive web notification only when user is online: if offline, then push is discarded (online = browser opened)
ex: user1 has his browser closed. A notification is sent.
Normally, he will get it next time he opens his browser.
Is there a way a discard that notification ?
(sent when he was offline)
push-notification onesignal
push-notification onesignal
asked Nov 7 at 20:33
yarek
3,2431573133
3,2431573133
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Yes, you can achieve this with the TIME TO LIVE option, by default is 3 days but you can set to 0 and the message will be discarded if the user is offline.

Source
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Yes, you can achieve this with the TIME TO LIVE option, by default is 3 days but you can set to 0 and the message will be discarded if the user is offline.

Source
add a comment |
up vote
1
down vote
accepted
Yes, you can achieve this with the TIME TO LIVE option, by default is 3 days but you can set to 0 and the message will be discarded if the user is offline.

Source
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Yes, you can achieve this with the TIME TO LIVE option, by default is 3 days but you can set to 0 and the message will be discarded if the user is offline.

Source
Yes, you can achieve this with the TIME TO LIVE option, by default is 3 days but you can set to 0 and the message will be discarded if the user is offline.

Source
answered Nov 8 at 13:37
Felipe Morales
69511228
69511228
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53197391%2fone-signal-how-to-display-notifications-only-wehn-user-is-online%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown