Answered by:
notification in metro apps

Question
-
I would like to showcase below functionality in metro apps
- alert - a normal dialog box with ok button eg. alert box in HTML/javascript
- confirm - a normal dialog box with a confirm button or button with different options
- beep - a functionality for device to beep
- vibrate - a functionality to vibrate the device
let me know if you know which WinJS library I need to refer?
appreciate your knowledge sharing on this.
- Edited by chandreshsoni Friday, August 31, 2012 11:12 AM
Friday, August 31, 2012 11:11 AM
Answers
-
Hi
For first and second function please refer to this SDK sample:Message dialog sample
For the third question you can add some adding audio to your app functionality:http://msdn.microsoft.com/en-us/library/windows/apps/hh452730.aspxFor the forth question, that's need the device have this function, may be you should ask this question in this forum:
Tailoring your Metro style app for hardware and devices
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, September 4, 2012 8:03 PM
- Edited by Dino He Wednesday, September 5, 2012 12:43 PM add a link
- Marked as answer by Dino He Friday, September 14, 2012 8:14 AM
Monday, September 3, 2012 1:20 PM -
There is no vibrate API built in like you had for Windows Phone 7.
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, September 4, 2012 8:03 PM
- Marked as answer by Dino He Friday, September 14, 2012 8:14 AM
Tuesday, September 4, 2012 8:03 PMModerator
All replies
-
Hi
For first and second function please refer to this SDK sample:Message dialog sample
For the third question you can add some adding audio to your app functionality:http://msdn.microsoft.com/en-us/library/windows/apps/hh452730.aspxFor the forth question, that's need the device have this function, may be you should ask this question in this forum:
Tailoring your Metro style app for hardware and devices
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, September 4, 2012 8:03 PM
- Edited by Dino He Wednesday, September 5, 2012 12:43 PM add a link
- Marked as answer by Dino He Friday, September 14, 2012 8:14 AM
Monday, September 3, 2012 1:20 PM -
There is no vibrate API built in like you had for Windows Phone 7.
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, September 4, 2012 8:03 PM
- Marked as answer by Dino He Friday, September 14, 2012 8:14 AM
Tuesday, September 4, 2012 8:03 PMModerator