can you opt-out of notifications on macOS when the...
# compose-desktop
a
can you opt-out of notifications on macOS when the app is packaged as
.dmg
? I didn’t do anything to include notifications, but when I run the app there is a notification shown (reposted to add screenshot)
c
You were the guy!!!
a
two notification questions one after another 😄 thanks, I'll try this out 👍
c
good luck!
a
Thanks, that was very helpful I have added in my `build.gradle.kts`:
Copy code
compose.desktop {
    application {
        nativeDistributions {
            macOS {
                infoPlist {
                    extraKeysRawXml = macExtraPlistKeys
                }
            }
        }
    }
}

val macExtraPlistKeys: String
    get() = """
            |  <key>NSUserNotificationAlertStyle</key>
            |  <string>none</string>
            """.trimMargin()
And I can see that it is added correctly in the
Info.plist
However I see that the notification is still displayed. From what I found the app has to be signed for this to work apparently 😞 Hope that’s not too complicated
fuck me 😄 $100/yr to get rid of notification, no thank you 😂