Native Addons: Not able to display toast notification on windows

21 views
Skip to first unread message

Rishu Kumar

unread,
May 11, 2016, 11:21:41 AM5/11/16
to nodejs
Hi,

I am working to create native module for windows 8 and above to display toast notification by following the example provided by Microsoft (https://code.msdn.microsoft.com/windowsdesktop/Sending-toast-notifications-71e230a2/view/Discussions), but It filed to display notification. After debug it, we observed that notification api exited after below mentioned line:

ComPtr<IShellLink> shellLink;
hr = CoCreateInstance(CLSID_ShellLink, nullptr, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&shellLink));

ComPtr<IToastNotificationManagerStatics> toastStatics;
HRESULT hr = GetActivationFactory(StringReferenceWrapper(RuntimeClass_Windows_UI_Notifications_ToastNotificationManager).Get(), &toastStatics);

Please suggest if any work around to display toast notification with native addons.

Regards,
Rishu
Reply all
Reply to author
Forward
0 new messages