Pin Secondary tiles - win-universal-app

According to this link:
Only users can pin a secondary tile to the Start screen; apps can't programmatically pin secondary tiles
what does it mean? because I can pin my application to start screen by this code:
secondaryTile.RequestCreateAsync();

Seems like that documentation meant to say...
Secondary Tiles should only be pinned as a result of direct user interaction (like clicking a Pin button in your app).
In Windows 8.1, your users will see that dialog displaying a preview of the tile, confirming whether they'd like to pin it. In Windows Phone 8.1, the tile will be automatically pinned and the user will be taken to the Start Screen, showing them the new tile. In Windows 10 Desktop, the user will see a "Did you mean to pin this to Start?" dialog, which they have to click yes in order to pin the tile. In Windows 10 Mobile, the tile will be silently pinned and your app will remain in the foreground.

Related

With holographic remoting player app, I always see just a black screen with 'receiving...' text

I'm a new user for hololens2. Recently, I am using hologrphic remoting player app because it can support my application tests.
What I expected to show on hololens when I set up this app with unity to use is my scene. However, it show me just black screen with 'receiving...' text.
I even wait for about 5 minutes after this text showed up, but this situation never changed. Plus, in unity, the game tab should show my scene, but it shows black screen too whenever I click the 'start' button to use the app.
How can I fix it?

Electron : App minimize or not visible after click outside browserWindow or Windows key+D

I am developing a desktop widget which shows current system status. But the problem is when any user clicks outside of browser window the app get hide/not visible on the desktop. The same thing happens when user press key windows key +D. Is there anything that we can do for preventing this or catch this event and call window.show(). Because lots of desktop widget support this kind of feature.
Edit: I have tried alwaysOnTop property of browserWindow, but I don't want to show my app above the other apps. Like any desktop widget which always shows on the desktop.

Where does secondary image in (node.js) Windows 8 toast notification come from?

I'm using node-notifier (link) in node.js to show a toast notification in Windows 8. I have it working and I'm able to adjust the title, text, and main image in the notification just fine. However, in a Windows 8 toast notifications, there is a secondary (smaller) image. See below:
So, node-notifier uses toaster, which in turn uses ToastNotificationManager. But, I cannot find any reference anywhere to this secondary image. I've looked here and here on Microsoft's site.
This secondary image also shows in other notifications I receive from applications like Outlook, Slack, etc.
Where is this secondary image coming from? Is the documentation just out of date? Can Toaster be modified to access this secondary image?
The secondary image is the icon for the shortcut in the Start Menu folder for the program registered to raise a toast. To change it, you'll need to modify the icon on the shortcut.
For a desktop application to use the ToastNotificationManager class, it is required to have a shortcut in the start menu, and an AppUserModelId associated with that shortcut. At ToastNotificationManager creation time, the caller passes in the same AppUserModelId, which ties back to the associated icon for the shortcut. More about registering desktop applications to raise toasts this can be found on this MSDN documentation page.
Looking at the toaster code here, it is installing the shortcut to a file called toast.lnk in the Start Menu:
String shortcutPath =
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
"\\Microsoft\\Windows\\Start Menu\\Programs\\toast.lnk";
And, it is creating the shortcut targeting the initial calling process:
String exePath = Process.GetCurrentProcess().MainModule.FileName;
Updating the icon in the shortcut manually should verify that you can change what is shown locally, but an update to toaster to set the icon location is likely required (to support multiple callers with different shortcuts, or by having it call IShellLink::SetIconLocation).

Windows Universal Apps and tray

I was going to write a Windows Universal App that would be running in the tray. On the tray icon there would be a context menu with several options (for adding a new timelog, for closing the current one). But according to this post System tray/taskbar icon/notify icon with universal apps there is no possibility to run the WUP in the tray. Really??
Is the tray meant to be only for the system applications and the old-kind apps?
Is there some other option? To have menu items for pinned taskbar icon, may be?
Thanks
Universal apps cannot add themselves to the notification area, but the recent Windows 10 Update enables them to add items to the JumpList displayed when right clicking on the item's taskbar icon or tile.
bool jumpListPresent = Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.StartScreen.JumpList");
if (jumpListPresent && JumpList.IsSupported())
{
JumpList jl = await JumpList.LoadCurrentAsync();
jl.Items.Clear();
JumpListItem jli = JumpListItem.CreateWithArguments("myJumpListItem", "my Jump List Item");
jl.Items.Add(jli);
await jl.SaveAsync();
}
As far as I know, it's not possible to have a tray icon for UWP application. Previously, Windows Apps was designed to run in full screen mode.
If this is a LOB app, you can try to use a Brokered Component to access to the Tray Icon feature.
Thanks,

Desktop capture - Does not show all windows during sharing contents of Desktop

Here is the link to my extension code:
Trying to capture desktop image using getUserMedia and canvas
The problem is that when I use :
chrome.desktopCapture.chooseDesktopMedia(["screen", "window"],onAccessApproved);
It asks me to share contents of my screen. But it doesn't show all windows that are active on my desktop.
Example: Sometimes my skype is minimised and if click the extension icon it opens a sharing panel and asks me to share desktop contents but skype window is not shown in this panel. If I click on skype from my task bar, the sharing panel shows skype. Reason for this behaviour?
How to show all my windows on sharing screen?
Well, the behavior is consistent: on Windows, minimized windows are not shown as eligible capture targets. There is no way around it.
This limitation is not documented, which is regrettable; it may also be OS-specific.
Specifically, Windows implementation contains the following comment:
// Skip windows that are invisible, minimized, have no title, or are owned,
// unless they have the app window style set.
Interestingly, this seems more like a Mac limitation than a Windows one:
// Return a 1x1 black frame if the window is minimized, to match the behavior
// on Mac.

Resources