Reputation: 698
I want to know how to set toast capable in a UWP App. I'm using Visual Studio 2015 and in Package.appxmanifest editor there isn't any option for that. I tried to mannualy edit the xml, msdn says you can add that mannualy like that.
<VisualElements
...
ToastCapable="true">
</VisualElements>
But I found the .appxmenifest to be like that
<uap:VisualElements DisplayName="Name" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Sample" BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" ShortName="Name">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
<uap:InitialRotationPreference>
<uap:Rotation Preference="portrait" />
<uap:Rotation Preference="landscape" />
<uap:Rotation Preference="portraitFlipped" />
<uap:Rotation Preference="landscapeFlipped" />
</uap:InitialRotationPreference>
</uap:VisualElements>
How to achieve toast capability? Please help.
Upvotes: 4
Views: 1231
Reputation: 10015
In Windows 10 you're no longer needed to set the ToastCapable flag:
Hmm, well you definitely need to have ToastCapable set to true in the manifest since 8.1 required that, otherwise your toasts won’t work in 8.1 (in 10, we stopped requiring the ToastCapable flag).
Source: Comment on the official Quickstart guide
You can verify it yourself in the full source code of the quickstart on GitHub.
Upvotes: 4