[GuiService] "SendNotification is not yet enabled" Error

I’m trying the method ‘SendNotification’ that’s within GuiService but I am getting the error:
GuiService:SendNotification is not yet enabled!

How can I fix this?

2 Likes

They might be working on an updated notification system, it’s about time anyways. I think I’ve seen it used in a few games already for badges and such but for now use this.

game:GetService("StarterGui"):SetCore("SendNotification",{
	Title = "Notification Title", -- Required
	Text = "Notification Description", -- Required
	Icon = "rbxassetid://1234567890" -- Optional
})

StarterGui | Documentation - Roblox Creator Hub

That makes sense, I know about SetCore("SendNotification") but thanks anyways

Ok so I did a little digging and it is definitely the new notifications I was referring to.

So this is apparently the new one, it sits neatly in the Top-Right corner but sadly only has support for 1 at a time. If you send multiple request, it basically acts like a queue system.

I can’t figure out what’s actually supported within these parameters but it’s strict thats for sure. These are the three I know for sure works but I haven’t gotten any other ones to go through. I don’t know if its going to stay like this but if you try to send a variable it doesn’t like it errors and drops the whole request. It has a little X button in the top-left when you hover over it and stays on the screen for a good few seconds but you can dismiss it by the ID it returns back to you.

local TestNotification = game:GetService("GuiService"):SendNotification({
    Title = "Notification Title",
    Text = "Notification Description",
    Icon = "rbxassetid://1234567890"
})

The FFlag to enable it is “DeveloperToastNotificationsEnabled2” although it’s not enabled in game yet so I wouldn’t bother. Seems pretty neat still.
(It doesn’t seem to have RichText support either at least that I can figure out, the property is disabled by default on the TextBoxes and using RichText = true as a parameter didn’t do anything but give an error)

Not working for me.
I’m trying to make one with a call back function which can be fired from my server and communicate with the client.

Everytime I test the game it just says “SetCore: SendNotification has not been registered by the CoreScripts”

For reference this the code running:

local StarterGui = game:GetService("StarterGui")
local bindable = Instance.new("BindableFunction")

function bindable.OnInvoke(response)
	print(response .. " chosen")
	game.ReplicatedStorage.Remotes.communicateCli:FireServer(response)
end

function sendNotification(title, context, dur, b1, b2)
	StarterGui:SetCore("SendNotification", {
		Title = title,
		Text = context,
		Duration = dur,
		Callback = bindable,
		Button1 = b1,
		Button2 = b2
	})
end

game.ReplicatedStorage.Remotes.sendNoti.OnClientEvent:Connect(sendNotification)

The post you replied to is using GuiService, not StarterGui.
That error message shouldn’t be happening though so maybe they are changing something about it right now?

I figured out the problem. Forgot how but I did, thanks for your help though.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.