Skip to content

Comments

fix: early completion call on iOS remote notifications#1687

Merged
santhoshvai merged 3 commits intomainfrom
ios-completion
Feb 19, 2025
Merged

fix: early completion call on iOS remote notifications#1687
santhoshvai merged 3 commits intomainfrom
ios-completion

Conversation

@santhoshvai
Copy link
Member

@santhoshvai santhoshvai commented Feb 18, 2025

Overview

rarely didDisplayIncomingCall comes after onNotificationReceived completes, this is problematic as per the voipNotification library. We must complete only at the last after all are processed it seems.

But I dont know what the problem is though.

Test

Just ensure that JS calls the completion function in all three scenarios

  1. Foregrounded app
  2. Backgrounded app
  3. Killed off app

Copy link
Member Author

@santhoshvai santhoshvai Feb 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is unrelevant to this PR, but aims to fix a confusion here, useEffect now captures the last count by reference to make it clear.

It doesn't cause any difference though

@santhoshvai santhoshvai merged commit 39c4ba7 into main Feb 19, 2025
10 checks passed
@santhoshvai santhoshvai deleted the ios-completion branch February 19, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants