Xamrin.Forms(Android) MessagingCenter Not Working

CustomWebviewRenderer.cs
Guid guid = Guid.NewGuid(); MessagingCenter.Send<CustomWebViewRenderer, Guid>(this, "Hi", guid);

MainActivity.cs

Guid gu; MessagingCenter.Subscribe<CustomWebViewRenderer, Guid>(this, "Hi",(arg1, arg2) => { gu = arg2; });

Sign In or Register to comment.