android - User Notifications and Upstream Messages - how to not to show dismissed notification -



android - User Notifications and Upstream Messages - how to not to show dismissed notification -

got question user notifications , upstream messages features.

suppose user has 2 devices: device , device b. device online , device b offline. 3rd party server sending x notifications notification key. device receives of notifications. user dismisses of them , device sends x notification gcm (one notification sent per 1 notification received) notification dismissed. device b goes online , receives x + x notifications - x notifications sent 3rd party server , x notifications sent device dismiss information. result x notifications shown , right after dismissed on device b.

how handle such situations? how not show dismissed notifications?

when user dismisses notification on device,send note server delete notification user. way when new device polls notifications, dismissed notification won't show up.

if have case both devices connected internet, , 1 dismisses notification, because device sent message server saying notification dismissed, server should send messages user's devices saying remove notification if exists.

android google-cloud-messaging android-notifications

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -