we have been using this code for a long time
local ExperienceNotificationService = game:GetService("ExperienceNotificationService")
local function canPromptOptIn()
local success, canPrompt = pcall(function()
return ExperienceNotificationService:CanPromptOptInAsync()
end)
return success and canPrompt
end
local canPrompt = canPromptOptIn()
if canPrompt then
local success, errorMessage = pcall(function()
ExperienceNotificationService:PromptOptIn()
end)
end
which is copied from the doc
although there might be less than 3 of this error usually, suddenly have a lot of this error reported since Feb 7:
The player cannot be prompted. Please check ExperienceNotificationService:CanPromptOptIn first before calling ExperienceNotificationService:PromptOptIn
because the code had used CanPromptOptIn
already, it would either be CanPromptOptIn wrongly returned true, or PromptOptIn wrongly reported such error
Expected behavior
i expect ZERO such error reported.