Tengo una aplicación tipo red social, en la que un usuario inicia sesión, y por medio de un botón manda notificaciones a otro usuario. Es la primera vez que uso notificaciones así que he estado investigando y encontré la forma de generar la notificación pero lo hace de forma local (es decir en la misma aplicación).
Lo hago por medio de este código:
//Create notification
var notificationManager = GetSystemService(Context.NotificationService) as
NotificationManager;
//Create an intent to show ui
var uiIntent = new Intent(this, typeof(MainActivity));
//Create the notification
var notification = new Notification(Resource.Drawable.Icon, "Tienes notificación");
//var notification = new Notification(Android.Resource.Drawable.SymActionEmail,title);
//Auto cancel will remove the notification once the user touches it
notification.Flags = NotificationFlags.AutoCancel;
//Set the notification info
//we use the pending intent, passing our ui intent over which will get called
//when the notification is tapped.
notification.SetLatestEventInfo(this,"Tienes nueva notificación", "Te ha enviado una solicitud de contacto", PendingIntent.GetActivity(this, 0, uiIntent, 0));
//Show the notification
notificationManager.Notify(1, notification);
Hay alguna forma de que esa misma notificación se le envíe al otro usuario? (Como en las notificaciones de facebook). Gracias