Browse Source

Support for Foreground-Callback (WP8)

Sebastián Katzer 12 years ago
parent
commit
c456f9c721
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/wp8/LocalNotification.cs

+ 5 - 0
src/wp8/LocalNotification.cs

@@ -44,6 +44,11 @@ namespace Cordova.Extension.Commands
 
                 // Update the Application Tile
                 AppTile.Update(TileData);
+
+                if (!string.IsNullOrEmpty(options.Foreground))
+                {
+                    DispatchCommandResult(new PluginResult(PluginResult.Status.OK, options.Foreground + "," + options.ID));
+                }
             }
 
             DispatchCommandResult();