简体   繁体   English

如何从应用程序外部获取Toast通知?

[英]How can i get my Toast Notification from outside the application?

Hi i got stuck with this problem, i can't find out how to get Toast notification from outside the application, i cant get it from inside like this : 嗨,我陷入了这个问题,我无法找出如何从应用程序外部获取Toast通知,我无法从内部这样获取消息:

private void ToastNotificationReceived(NotificationEventArgs e)
    {
        //liste_notifications.Items.Add("Toast : " + e.Collection["wp:Text1"]);
        if (e.Collection["wp:Text1"].Contains("Client"))
        {
            ClientNotification cn = new ClientNotification();
            cn.FromWho = e.Collection["wp:Text1"].Substring(6, 6);
            cn.Notification = e.Collection["wp:Text1"].Substring(12);
            cn.Date = DateTime.Now;
            ClientItems.Add(cn);
            PersistData();
        }

but i don't have a clue how to do it from outside. 但是我不知道如何从外面做。 Thanks for your help 谢谢你的帮助

Toast通知显示在屏幕顶部,并且您的应用程序内部未执行任何代码/事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何为我的应用程序接收吐司? - How can I receive toast for my app? 是否可以从控制台应用程序发送 Toast 通知? - Is it possible to send Toast notification from console application? 我如何获得程序崩溃的通知 - How can I get notification that my program has crashed 为什么我不能从C#向Windows Phone 8.1发送WNS吐司通知 - why can't I send WNS toast notification from c# to windows phone 8.1 如何在我的应用程序中添加toast样式弹出窗口? - How to add toast style popup to my application? 如何以编程方式删除在锁定屏幕中启动的UWP吐司通知? - How can I programatically remove a UWP toast notification that was launched while in lock screen? 我可以配置Windows 8.1平板电脑应用程序以接收吐司通知吗 - Can I configure my windows 8.1 TABLET application to receive toast notifications 我怎么能得到我运行我的应用程序exe文件的目录? - how can i get the directory of where i run my application exe file from? 如何从Web应用程序外部的Web URL获取文件列表 - How to get list of files from web URL outside my web application 如何在我的 ASP.NET Core 应用程序中使用 Startup.cs 之外的服务? - How can I use a service outside of Startup.cs in my ASP.NET Core Application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM