Пример #1
0
            public PendingIntent GetNotificationPendingIntent(Context context, NotificationMessage message)
            {
                var intent = string.IsNullOrEmpty(message.Url())
                                        ? new Intent(context, typeof(MainActivity))
                                        : new Intent(Intent.ActionView, Uri.Parse(message.Url()));

                var pendingIntent = PendingIntent.GetActivity(context, new Random().Next(), intent, PendingIntentFlags.UpdateCurrent);

                return(NotificationManager.RedirectIntentForAnalytics(context, pendingIntent, message, true));
            }
Пример #2
0
 public string GetNotificationChannelId(Context context, NotificationMessage message)
 {
     return(NotificationManager.CreateDefaultNotificationChannel(context));
 }