I have a Webview and for example : string url = "https://www.google.com"; UrlLoad(url); Show the Google in my App,
ok,If I received a notification and Push that, the Webview will Change page.
Just Like string url = Notification's body;
I'm sorry ,my English is not good.
Thanks.
ps. I'm use Xamarin
This is FCM Receive
[Service]
[IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })]
class Firebasemessaging : FirebaseMessagingService
{
public override void OnMessageReceived(RemoteMessage message)
{
this.SendNotification(message.GetNotification().Body);
Notification notifi = new
Notification(Resource.Drawable.pika,"Handbim");
}
private void SendNotification(string body)
{
var intent = new Intent(this, typeof(MainActivity));
intent.AddFlags(ActivityFlags.ClearTop);
var pendingIntent = PendingIntent.GetActivity(this, 0, intent, PendingIntentFlags.OneShot);
var defaultsoundUri = RingtoneManager.GetDefaultUri(RingtoneType.Notification);
var notif = new NotificationCompat.Builder(this)
.SetContentTitle("handbim")
.SetContentText(body)
.SetAutoCancel(true)
.SetSound(defaultsoundUri)
.SetContentIntent(pendingIntent);
var notificationManager = NotificationManager.FromContext(this);
notificationManager.Notify(0,notif.Build());
}
}