Answered by:
How to create the special toast and swipe down on lock screen like Skype in win8.1?

Question
-
In win8.1, we can swipe down on lock screen to open camera.
And also can answer a Skype call from the lock screen.http://webwereld.nl/development/79224-skype-omzeilt-lockscreen-windows-8-1---update
http://www.stckwt.com/index.php?route=product/product&product_id=137I want to create a windows store App like Skype.
When someone call, it will show a special toast : user can also choose how to respond – answer call or decline.
If user choose answer call in lock screen, it will auto swipe down the screen and begin answer call.But I have no idea.
Does anyone have similar experiences?
Tuesday, March 10, 2015 6:20 AM
Answers
-
The Alarm Toast Notification sample shows how to do this for an application that is the Alarm application for the machine:
https://code.msdn.microsoft.com/windowsapps/Alarm-toast-notifications-fe81fc74
If your application is a VOIP application then you can modify the toast XML String in that sample to be the following:
string toastXmlString = "<toast duration=\"long\">\n" + "<visual>\n" + "<binding template=\"ToastText02\">\n" + "<text id=\"1\">Alarms Notifications SDK Sample App</text>\n" + "<text id=\"2\">" + alarmName + "</text>\n" + "</binding>\n" + "</visual>\n" + "<commands scenario=\"incomingCall\">\n" + "<command id=\"voice\"/>\n" + "<command id=\"video\"/>\n" + "<command id=\"decline\"/>\n" + "</commands>\n" + "<audio src=\"ms-winsoundevent:Notification.Looping.Alarm2\" loop=\"true\" />\n" + "</toast>\n";
Note that this will only work if you have an application that can accept incoming calls.Bret Bentzinger (MSFT) @awehellyeah
- Marked as answer by hatasum Tuesday, March 17, 2015 7:51 AM
Tuesday, March 10, 2015 11:17 PMModerator -
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2013/09/27/windows-8-1-preview-and-alarm-call-applications.aspx
The link answer all my question, thanks for everyone's help!
- Edited by hatasum Wednesday, March 11, 2015 7:21 AM
- Proposed as answer by Franklin ChenMicrosoft employee, Moderator Friday, March 13, 2015 9:17 AM
- Marked as answer by hatasum Tuesday, March 17, 2015 7:51 AM
Wednesday, March 11, 2015 4:51 AM
All replies
-
The Alarm Toast Notification sample shows how to do this for an application that is the Alarm application for the machine:
https://code.msdn.microsoft.com/windowsapps/Alarm-toast-notifications-fe81fc74
If your application is a VOIP application then you can modify the toast XML String in that sample to be the following:
string toastXmlString = "<toast duration=\"long\">\n" + "<visual>\n" + "<binding template=\"ToastText02\">\n" + "<text id=\"1\">Alarms Notifications SDK Sample App</text>\n" + "<text id=\"2\">" + alarmName + "</text>\n" + "</binding>\n" + "</visual>\n" + "<commands scenario=\"incomingCall\">\n" + "<command id=\"voice\"/>\n" + "<command id=\"video\"/>\n" + "<command id=\"decline\"/>\n" + "</commands>\n" + "<audio src=\"ms-winsoundevent:Notification.Looping.Alarm2\" loop=\"true\" />\n" + "</toast>\n";
Note that this will only work if you have an application that can accept incoming calls.Bret Bentzinger (MSFT) @awehellyeah
- Marked as answer by hatasum Tuesday, March 17, 2015 7:51 AM
Tuesday, March 10, 2015 11:17 PMModerator -
http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2013/09/27/windows-8-1-preview-and-alarm-call-applications.aspx
The link answer all my question, thanks for everyone's help!
- Edited by hatasum Wednesday, March 11, 2015 7:21 AM
- Proposed as answer by Franklin ChenMicrosoft employee, Moderator Friday, March 13, 2015 9:17 AM
- Marked as answer by hatasum Tuesday, March 17, 2015 7:51 AM
Wednesday, March 11, 2015 4:51 AM