Notification Service

There is no current API on Notification Service so I am currently unsure as to what does what.

I am attempting to get when a notification is made as well as the title and text
Ive found Roblox17EventRecieved tied in to the notification service but there us 0 hits on google and no API on that either.

If anyone knows if this is the correct event and what parameters in what form it would be appreciated.

Note:
I will need to follow this up with a missing documentation post

2 Likes

I think you meant StarterGui:SetCore("SendNotification"), the SetCore function is available for many features one of them being a notification which I believe you wanted to make. If you want to view the API click here.

To futher expand on this, :SetCore("SendNotification", {}) will require a dictionary so that you can input the title, text, duration etc. Here’s an example code of me doing it:


game:GetService("StarterGui"):SetCore("SendNotification", {
Title = Success,
Text = You have made a notification,
Icon = rbxasset bla bla bla, -- (this is optional meaning you can leave it)
Duration = notifDur, -- if left blank then it will default to 5 seconds
Callback = onNotifClicked
}
)

Thanks for the info, ive just changed it over to see if I can create them this way.
Im guessing I will need to test it as a server as what it still isnt making notfication pop-ups with this code:

function CreateNotification(Title,Text)
	local SetCore = Starter:SetCore("SendNotification",{Title,Text,nil,5,nil})
	print("Done")
end
wait(5)
print("Making Notification")
CreateNotification("TestTitle","Text")

Edit:
Ive ran it as a server and still no notifications, ive tried it with only two parameters as well as they are the only required

That is the incorrect way of providing the table with parameters, it’s a key-value list for a reason. Try this:

function CreateNotification(Title,Text)
	local SetCore = Starter:SetCore("SendNotification",{
		Title = Title,
		Text = Text,
		Icon = "",
		Duration = 5
	})
	print("Done")
end
wait(5)
print("Making Notification")
CreateNotification("TestTitle","Text")
8 Likes

Thats done the trick, Thanks ill mark it as the soloution

Edit:
Also does anyone know how to get when a notification is created and the text it has?

1 Like

i would like to point out that the SetCore function returns nil, theres no need to have local SetCore =

10 Likes