问题描述
无论如何可以获取应用程序已打开的上下文?IE.用户是否按下了收到的 Toast 通知或他们是否点击了应用程序磁贴?我的理由是我会向用户发送一个 toast 通知(例如,给你的 1 条新消息!).如果他们点击 Toast 通知,我希望应用在收件箱之类的屏幕上打开,而不是在我的主屏幕上.
Is there anyway to get the context that an app has been opened? ie. Has the user pressed on a received toast notification or have they clicked on the application tile? My reasoning is that I will send the user a toast notification (eg. 1 new message for you!). If they tap on the toast notification I would like the app to open at an inbox like screen as opposed to my home screen.
推荐答案
向 Toast
或 Tile
Url
添加一些参数.例如,/Views/MainPage.xaml?from=toast
告诉您用户点击 Toast 而不是从菜单启动您的应用程序.这叫做深层链接
Add some parameter to Toast
or Tile
Url
. For example, /Views/MainPage.xaml?from=toast
that tells you that user tap a toast instead of just launch your app from a menu. It's called Deep Links
这篇关于我可以通过点击 Toast 通知来判断用户是否打开了我的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!