-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications Not showing in Windows 10 #1338
Comments
Squirrel writes an App User Model ID to your shortcut, you probably need to match that App User Model ID when you call the notification API. It's of the format:
So
For a NuGet package called "Atom" with a program, "atom.exe" |
Thanks for the quick reply Do I need to add the com.squirrel in front so, com.squirrel.com.company.appname |
@utd1878 You should stop setting the App ID yourself and use the Squirrel one, or else you're going to have issues |
@paulcbetts oh...so I set that in my package.json previously in order to get the notifications to work with the NSIS target. So you're saying I should remove that from my package.json file and I don't need to manually set it? Thanks for your patience....I'm cutting my teeth with Squirrel and am learning these finer points. |
@utd1878 Ya. Squirrel sets the App ID intentionally to try to fix some of the pinning issues, but this also affects how people do notifications.
No worries! App User Model IDs are super obscure, this is like graduate-level Squirrel :) |
@paulcbetts haha, thanks. So I've removed the AppId line from my package.json file, rebuild the app and unfortunately, I'm still not seeing notifications for my app on win 10. Looking at the notifications settings, I'm not seeing the application either. Is there another spot I need to configure?
|
@utd1878 Try calling https://github.com/electron/electron/blob/master/docs/api/app.md#appsetappusermodelidid-windows on early startup |
okay, I can try that...what ID am I using? |
@utd1878 |
@paulcbetts So at the risk of coming across as very naive/green, above you mentioned, NuGet package, and this app isn't a nuget package so I'm not sure what I need to put in place of the PACKAGE in the id. |
@utd1878 It's almost certainly the same as your package ID in |
@paulcbetts Thanks for helping me. I must be missing something. I've added that call early on, added the id of 'com.squirrel.my-app-name' and still nothing. |
|
Okay. Is the package Id the same as the appid? I don’t recall having to set a property “packageid” |
@paulcbetts Thanks for your time. There must be something else I'm missing. I've added the call you mentioned above and added the package and exe name app.setAppUserModelId("com.squirrel.my-app-name.My Exe Name") Still nothing. (I also tried putting underscores in place of the spaces in the exe). |
I'm not able to see notifications after install my app with the Squirrel target, if that makes sense.
I have an electron app, and I have a target of NSIS and Squirrel ( I use Squirrel for the auto updates). When I install the NSIS exe, windows recognizes the app and will show it's notifications.
When I install the squirrel target, it will not show the notifications. The application is the exact same, the only difference is the target.
I've searched all over and haven't been able to figure out why? Some posts I've ready suggested that because the Start Menu shortcut is added within a group, that could cause problems with the notifications.
Any guidance on this would be helpful. I think it's a bug, but am open to the idea that I'm missing a setup.
The text was updated successfully, but these errors were encountered: