Skip to content
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 are not working on iOS #4966

Closed
2 tasks done
Gys opened this issue Jun 24, 2024 · 2 comments
Closed
2 tasks done

Notifications are not working on iOS #4966

Gys opened this issue Jun 24, 2024 · 2 comments
Labels
unverified A bug that has been reported but not verified

Comments

@Gys
Copy link

Gys commented Jun 24, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

I create a simple Fyne app only to test notifications. The app works on MacOS and Android. When I compile and install on iOS there is no notification.

The docs https://developer.apple.com/documentation/usernotifications/asking-permission-to-use-notifications state:

Local and remote notifications...

..., you must obtain permission to use them.

I think the must is critical here. Fyne provides no mechanism to ask for permission?

How to reproduce

The simplest notifications app will do.

Screenshots

No response

Example code

func main() {
	a := app.New()
	w := a.NewWindow("Notification Example")
	btn := widget.NewButton("Show Notification", func() {
		notification := fyne.NewNotification("Notification Title", "This is the notification.")
		a.SendNotification(notification)
	})
	w.SetContent(container.NewVBox(
		widget.NewLabel("Click the button to show a notification."),
		btn,
	))
	w.ShowAndRun()
}

Fyne version

2.4.5

Go compiler version

go1.21.5 darwin/amd64

Operating system and version

MacOS Sonoma 14.5 (Intel)

Additional Information

iOS 17.5.1

@Gys Gys added the unverified A bug that has been reported but not verified label Jun 24, 2024
@Jacalz
Copy link
Member

Jacalz commented Jun 24, 2024

Likely fixed on develop with d6261cf already?

@andydotxyz
Copy link
Member

Good point, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

3 participants