ildar-shaymukhametov_grandnode-refactorings/Grand.Web/Views/Shared/Components/PushNotificationsRegistration/Default.cshtml
@model Grand.Web.Models.PushNotifications.PublicInfoModel
@inject IPageHeadBuilder pagebuilder
@{
    pagebuilder.AddScriptParts(ResourceLocation.Footer, "https://www.gstatic.com/firebasejs/7.21.0/firebase.js", excludeFromBundle: true);
    pagebuilder.AddScriptParts(ResourceLocation.Footer, "~/scripts/jquery.push.notifications.js");
}

<script asp-location="Footer">
    $(document).ready(function () {
        PushNotifications.init("@Model.PublicApiKey", "@Model.SenderId", "@Model.ProjectId", "@Model.AuthDomain", "@Model.StorageBucket", "@Model.AppId",
            "@Model.DatabaseUrl", "@Url.Action("ProcessRegistration", "PushNotifications")");
        PushNotifications.process();
    });
</script>