Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I follow this article to startup my UWP app when system reboot but it does not work.

https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#uwp-app-startup-task-extension

What I have tried:

I can register my app to Startup list on Windows but when after system reboot, my app does not auto start as my intention. Anyone has same problem? I really need some help. Thanks.
Posted
Updated 28-Mar-18 0:53am

1 solution

Desktop applications cannot be started unless a user is logged in.

Configure your app to start at log-in - Windows Developer BlogWindows Developer Blog[^]

If you want an app to start at windows reboot/start, it must be a Windows service (which cannot be a UWP app because a Windows service cannot have a user interface).
 
Share this answer
 
Comments
neoxxxooo 28-Mar-18 21:50pm    
Actually, I tried that article, used exactly source code in that sample and below is phenomenon:
- when I click Request to Enable StartUp button on main page of UWP app, it shows Startup State as Enabled.
- I check Task manager, this app is enabled in startup list.
- After I restart PC and login, this app start and minimize to Taskbar immediately.
- When I click on the app icon on Taskbar, the app displays only splash screen.
- I leave the app that way for few minutes and it suddenly close without any notifications.
#realJSOP 29-Mar-18 7:40am    
A splash screen will do exactly what you described. That's why they call it a splash screen. Is the app's icon still in the task bar? If not, you'll have to debug the app itself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900