Open VishaliOSRapidops opened 3 months ago
@russellwheatley @Salakar @Lyokone I've manually downloaded the plugin and integrated it into my app by removing the above-mentioned code snippet, it is working fine. But don't know why that code block is creating an issue.
@VishaliOSRapidops - so I understand, you are receiving a VoIP call from some other service, when that call is occuring on the device, you also send a background message via some Firebase admin API service which crashes the background process for pushing the message?
Could you provide a full reproduction so we can test, ideally a repository with clear steps on reproduction. Thank you.
@russellwheatley Thanks for your prompt reply, Yes, you understand the same. We are using Twilio for VoIP calls so it has several configuration parts, and that is not possible to share. I am ready to connect with your preferred communication channel, so I can explain you everything in detail.
@russellwheatley @Salakar @Lyokone https://github.com/firebase/flutterfire/assets/71368703/45911392-63bb-4340-bac9-d7eb63ea3b9a
As you can see in the video, When I received the VoIP call on the lock screen suddenly the app is terminated.
Technical details: Incoming call received through Twilio VoIP at the same time as per our requirement we are getting silent notification, Whenever receive the silent notification app is suddenly terminated.
It is my production blocker, Kindly please help. Thank you.
@russellwheatley is there any update?
There is no update I'm afraid, @VishaliOSRapidops. We prioritise issues with reproductions and there isn't one for this issue which would require significant time to setup. Please provide a reproduction repo and we can take a look. You don't have to provide your config values but please provide steps to setup any third party providers that appear to be a requirement (e.g. Twilio).
@russellwheatley I've invited you for the reproduction repo. Here are the steps to follow:
You need to create accessToken from Twilio using the steps which are mentioned in this https://www.twilio.com/docs/voice/sdks/ios/get-started
Go the repo-> example -> lib -> main.dart, here you need to initialize the Firebase setup using your config.
In the main.dart file you need to pass accessToken in this registerAccessTokenForIncomingCall() method.
@russellwheatley are you able to reproduce the issue on that repo that I've invited to you?
@russellwheatley any update on this issue or do you need any more stuff to reproduce? please help me this is a production blocker.
Is there an existing issue for this?
Are you aware of the differences between iOS and Android background message handling?
Do you have an active Apple Developer account?
Are you using a physical iOS device to test background messages?
Have you enabled "Remote Notifications" & "Background Mode" (Checking options for "Background Processing" & "Remote Notifications") in your app's Xcode project?
Have you created an APNs key in your Apple Developer account & uploaded this APNs key to your Firebase console?
Have you disabled method swizzling for Firebase in your app?
It doesn't matter whether it is or not.
Are you sending messages to your app from the Firebase Admin SDK?
{ "to": "token", "content_available": true, "priority":"high", "data": { "badge": "1", "alertUser": "true", "title": "Hello World", "message": "" } }
Have you requested permission from the user to receive notifications?
Have you used the 'Console' application on your macOS device to check if the iOS device's system is throttling your background messages?
Additional context and comments
In Android, it's working fine.
Steps to reproduce the issue in iOS,
(pre-condition)
- (BOOL)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler
The app is getting terminated when the below code is executed.
Thanks.