How to send push notification to iOS devices #8741
Unanswered
gadgetreviews
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When I developing an app, I have faced a problem with iOS notifications. Notification with android works perfectly but when I try to use it on a real iPhone (not simulator) I have these problems:
When app in background or foreground notification alert shown from iOS, when I click the notification, app will open. But that's all. No message handler is fired from flutter side. No background, or no foreground handlers are fired at flutter code.
I include AppDelegate.swift file. didReceiveRemoteNotification function prints the payload of message at debug screen. But does not fire flutter code. Should I modify didReceiveRemoteNotification to fire flutter handler code?
What is wrong with this code?
Thanks
AppDelegate.swift:
main.dart:
I am sending push notification from parse server. This is payload from parse cloud:
Beta Was this translation helpful? Give feedback.
All reactions