-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Error receiving PushVoIP in the background IOS #583
Comments
Same issue |
same issue. any solutions? |
Only in terminated and background right? |
That was exactly my mistake. I ended up removing and reinstalling, and it worked! But now my problem is accepting the incoming call. I’m receiving it, but when I answer, it throws an error. |
What error? Maybe you are passing not UUID value for id? Also, make sure you configure pushRegistry for your notification type and requirements. Here’s an example of how mine is set up:
Make sure the id you're passing is in UUID format, and confirm the payload structure matches what is expected. |
Currently, I’m receiving the VoIP notification. Upon receiving it, I register with my SIP server, and after registering and receiving the Invite, I want to display the notification that a call is incoming. However, it seems that I’m forced to show this notification in the function that handles receiving the VoIP notification, even though I haven’t received the call Invite yet. I want to register upon receiving the VoIP notification and only generate the incoming call notification after receiving the Invite, but it’s not working. // Handle incoming pushes
|
I receive the PushVoIP notification normally on iOS when the app is in the foreground, but when it goes to the background or is terminated, I don’t receive the PushVoIP notification.
delegate:
import UIKit
import Flutter
import awesome_notifications
//import shared_preferences_ios
import shared_preferences_foundation
import CallKit
import AVFAudio
import PushKit
import flutter_callkit_incoming
import WebRTC
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate, PKPushRegistryDelegate, CallkitIncomingAppDelegate {
//var flutterEngine: FlutterEngine?
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
}
// Call back from Recent history
override func application(_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
}
The text was updated successfully, but these errors were encountered: