Support of Param ?

Apr 6, 2012 at 9:09 AM

Hi,

any plan for supporting Param tag ? http://msdn.microsoft.com/en-us/library/hh202945(v=VS.92).aspx

 

Best regards

Apr 6, 2012 at 9:43 AM

ok,

I've done it if you want 

 

    public function send_toast($title, $message, $parameters = NULL, $message_id=NULL, $delay = WindowsPhonePushDelay::Immediate)
    {
        $msg =	"<?xml version=\"1.0\" encoding=\"utf-8\"?>" .
				"<wp:Notification xmlns:wp=\"WPNotification\">" .
				"<wp:Toast>" .
				"<wp:Text1>$title</wp:Text1>" .
				"<wp:Text2>$message</wp:Text2>";
		if ($parameters != NULL && $parameters != '')
		{
			$msg .= "<wp:Param>/MainPage.xaml?param=$parameters</wp:Param>"; // to change if needed
		}
		$msg .= "</wp:Toast>" .
				"</wp:Notification>";
 
        return $this->send_push('toast',$delay+2,$message_id, $msg);
    }