File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { baseMenuTemplate } from './menu/base_menu_template';
11
11
import { devMenuTemplate } from './menu/dev_menu_template' ;
12
12
import { helpMenuTemplate } from './menu/help_menu_template' ;
13
13
import createWindow from './helpers/window' ;
14
+ import { IS_WINDOWS } from './constants' ;
14
15
15
16
// Special module holding environment variables which you declared
16
17
// in config/env_xxx.json file.
@@ -33,6 +34,13 @@ if (env.name !== 'production') {
33
34
app . setPath ( 'userData' , `${ userDataPath } (${ env . name } )` ) ;
34
35
}
35
36
37
+ if ( IS_WINDOWS ) {
38
+ // Stupid, DUMB calls that have to be made to let notifications come through on Windows (only Windows 10?)
39
+ // See: https://github.com/electron/electron/issues/10864#issuecomment-382519150
40
+ app . setAppUserModelId ( 'com.knepper.android-messages-desktop' ) ;
41
+ app . setAsDefaultProtocolClient ( 'android-messages-desktop' ) ;
42
+ }
43
+
36
44
app . on ( 'ready' , ( ) => {
37
45
setApplicationMenu ( ) ;
38
46
autoUpdater . checkForUpdatesAndNotify ( ) ;
You can’t perform that action at this time.
0 commit comments