Remote Notifications - Triggered by user or not

Hello!

I’m really not familiar with push notifications and how they work… I want to show a certain popup when a push notification is received and the user touches it.

I see that I can get them using NotificationServices, with remoteNotificationCount and GetRemoteNotification. How do I see if the user activated it though? I don’t want to interrupt the player if he doesn’t touch the push notification when it appears, or if he opens my game after having received a push notification (without having activated that push notification). Does remote notifications only contain those activated by the user ?

Thanks !

Hey , You can easily integrate Push Notification on Android device using App42 API.

  1. App42 API support to Push Notification on cross platform.
  2. You can refer this blog
    to integrate Push Notification in Unity using Android.
    They also allow to Configure Notification UI

Here is 3 to Integrate Push Notification with Unity3d on iOS

@kevindqc

Brief workflow of Notifications post here

How do I see if the user activated it though?

Checking NotificationServices.
enabledNotificationTypes if it has
alert enabled or not can help in this
regard. But i’m not exactly sure if
Unity updates this variable or not.

I don’t want to interrupt the player if he doesn’t touch the push notification when it appears, or if he opens my game after having received a push notification (without having activated that push notification).

When your app is in foreground, iOS
doesn’t show notification as a push
notification banner. Your code needs
to handle if you want to show an alert
after receiving a notification.
However, when your app is not
running/in background, you can see a
notification alert in the notification
centre(this again depends on what user
settings are there). If user already
disabled it, notifications won’t be
shown by default.

Does remote notifications only contain those activated by the user ?

Not sure what you mean. If you
register for remote notifications with
alert, it will be shown in
Notification center if your app is in
background/not running.