Product: PowerShell Universal
Version: 2.6.2
What am I doing wrong here? I cannot get Hide-UDToast to hide a toast message. Sample code:
New-UDButton -Text 'Click Me' -OnClick {
$ID = '123'
Show-UDToast -Id $ID -Message 'Testing...' -Persistent
Start-Sleep -Seconds 5
Hide-UDToast -Id $ID
}
Additionally, -ReplaceToast doesn’t appear to work, I’ll just get another message
Show-UDToast -Message 'Testing 2...' -Persistent -ReplaceToast
even tried using the same ID number
Show-UDToast -Id $ID -Message 'Testing 2...' -Persistent -ReplaceToast
Using Persistent or Duration doesn’t matter.