Closed kubijo closed 3 years ago
Your tauri.rs version is outdated. You're at beta.5, current one is beta.8, BUT iirc notifications are broken on beta.8 too with unreleased fixes in the next
branch. So you may want to try that one out...
I see ... I can certainly test it out, but would very much appretiate any help with bumping the version to the next
branch … I can manage on the javascript side, but rust is very much not my area of expertize
For beta.8: tauri = {version = "1.0.0-beta.8", features = [...] }
For git: tauri = {git = "https://github.com/tauri-apps/tauri", branch = "next", features = [...] }
Run cargo update
after changing between published and git versions!
Neither of those helped, but I've just discovered what might be the problem with the persmission request
Does it work if you just use Notification.requestPermission()
?
AFAIK there is still this error: https://github.com/tauri-apps/tauri/issues/2330
Not if you're using the next branch or tauri.rs >= beta.6.
Also, that error in your screenshot is because _invoke
got renamed to __TAURI_INVOKE__
(don't know when, but should be released too)
But again, just try Notification.requestPermission()
it really should work (on the next branch at least. i think it panics on beta.8)
I'd think that this is about @tauri-aps/api
and so this should still be an issue since there is no newer version of that package, but I've changed it anyway and just started the re-compilation to try it out and confirm (w10 is pretty slow in Virtualbox :-))
OK ... I stand corrected! Thanks for your time and patience!
Is the fact that the notification has a title Windows Powershell
here to stay, or will we get our App name once this gets out?
It should be your app name in a release build (tauri build
) and PowerShell in debug builds/tauri dev
-runs.
Describe the bug
The windows build of my app doesn't show notifications, nor asks if I want to allow them.
This is the code that I use for notifications permission request (since published version of API still has a bug in this code):
and this is the code I'm using to test the notification
To Reproduce
I'd give more info if I'd know what would help, but at this point I haven't got a clue, but will cooperate if you have an idea what I should try & report back. The console in debug build doesn't show anything and both request and then notifications sending do work on latest Ubuntu
Platform and Versions (required):
Additional context
tauri.conf
Stack Trace
None seen anywhere