Base solution for your next web application
Open Closed

Documentation to integrate push notification #10697


User avatar
0
shedspotter created

What is your product version = 10.3.0 What is your product type = Angular What is product framework type = .net core

Our project requires to display live push notifications for users in mobile application. Is there any documentation for implementing the same in Xamarin forms(using SignalR) or any other Library?

Thanks

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We don't have a sample but your Host app already provides a SignalR Hub, so you can connect it from the Xamarin app.

    HubConnection = new HubConnectionBuilder().WithUrl("HOST_SIGNALR_HUB_URL")
    .ConfigureLogging(logging => {
        logging.SetMinimumLevel(LogLevel.Debug);
        logging.AddConsole();
        logging.AddDebug();
    })
    .Build();
    
    HubConnection.On<int, int>("EVENT", (param1, param2) =>
    {
        Console.WriteLine("TEST");
    });
    
    await HubConnection.StartAsync();
    
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)