Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Push notification - how to reliably detect when you tap the notification vs. tap the app icon

$
0
0

@pliablepixels wrote:

Not really an ionic issue, but hopefully folks here have some advice to share.
I’ve been trying to solve how to “reliably” detect when a user taps on a notification vs. tapping on the app icon. The detection needs to reliably work across the following situations:

  1. App is in foreground (trivial case, works well)
  2. App is in background, user taps on notification vs user taps on app icon (works well, I’ve realized that in this case if you tap on a notification, a “dismissed” flag will be added)
  3. App is killed, user taps on a notification vs. user taps on icon - I’ve been struggling trying to solve this.

I am currently using https://github.com/phonegap/phonegap-plugin-push and I can’t seem to find a reliable way to do this detection. I’ve noted behavior here and here

I’ve tried force-start as well. It seems the alternate plugin, cordova-plugin-fcm hasn’t been updated for 6 months and has compilation issues.

So for folks who are doing push related work, and have handled item 3, how are you doing it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>