我知道我们可以在锁定屏幕上显示徽章图像,但是使用 Windows 商店 javascript 应用程序锁定屏幕时可以显示 Toast 通知吗?
最佳答案
对于启用锁定屏幕的应用程序,Toast 会自动显示在锁定屏幕上(但并非所有应用程序)。这是 Toast notification overview docs 的引用:
Toast associated with an app that has a tile or badge on the lock screen will also appear on the lock screen. Toast shown on the lock screen is identical to toast shown elsewhere. It differs in that all toasts on the lock screen are shown for the length of a long-duration toast. For more information, see the Lock screen overview.
如果您启用了锁定屏幕,则以通常的方式发送 Toast 将在锁定屏幕上显示它们。请参阅Quickstart: sending a toast notification .
关于windows - 是否可以在 Windows 8.1 商店应用程序的锁屏上显示 Toast 通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19705725/