Commit 33008acb authored by Raghav Katyal's avatar Raghav Katyal
Browse files

[windows]Auto set toast capable flag and updating README

parent eaa9074a
Loading
Loading
Loading
Loading
+1 −2
Changes for README.md: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -427,8 +427,7 @@ For advanced templates and usage, the notification object is included in [`data.

### Setting Toast Capable Option for Windows

For your app to communicate through a toast notification, you must declare that it is Toast Capable in your app's manifest file. Cordova-windows 4.0.0 release adds this property to config.xml. You can use:
`<preference name="WindowsToastCapable" value="true" />` in config.xml. However, you will need Cordova 5.1.1 which pins Cordova-windows 4.0.0.
This plugin automatically sets the toast capable flag to be true for Cordova 5.1.1+. For lower versions, you must declare that it is Toast Capable in your app's manifest file. 

## Native Requirements

+3 −0
Changes for plugin.xml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -88,6 +88,9 @@
    <js-module src="src/windows/PushPluginProxy.js" name="PushPlugin">
      <merges target="" />
    </js-module>
    <config-file target="config.xml" parent="/*">
    	<preference name="WindowsToastCapable" value="true" />
	</config-file>
  </platform>

</plugin>