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

fix notification bug during incoming data call #1

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

aelmadani
Copy link

@aelmadani aelmadani commented Feb 26, 2024

When getting incoming data call, mobile freezes. User cannot receive or reject call.
Only way to get rid of call is to force kill app from settings.
When logging we found this fatal exception:
Skærmbillede 2024-02-06 kl  15 37 39

Trying this approach fixes the bug:
welldone-software#5

@aelmadani aelmadani self-assigned this Feb 26, 2024
@aelmadani aelmadani marked this pull request as ready for review February 26, 2024 12:20
postNotification(null);
notifyReceivedBackgroundToJS();
Copy link
Member

Choose a reason for hiding this comment

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

Don't we still need to call notifyReceivedBackgroundToJS()? Omitting this may be why you cannot start a call from the iOS native contact app (as you mentioned on the status meeting this morning).

Copy link
Author

Choose a reason for hiding this comment

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

Keeping notifyReceivedBackgroundToJS() does not solve the outgoing call issue from the native call app. In fact, I've installed old builds, and it seems that this issue is not new.

So I'm trying to figure out, wether it is caused by a change we've made earlier, or it is caused by an Android/Samsung update..

Copy link
Member

Choose a reason for hiding this comment

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

Does the app still receive registerNotificationReceivedBackground events (in phon-push-notifications/attachEvents.android.js) without this?

Copy link
Author

Choose a reason for hiding this comment

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

idk, I only end-to-end tested and incoming data call worked from dead state.. But I try to check log and and find out..

Copy link
Author

Choose a reason for hiding this comment

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

If I comment out the registerNotificationReceivedBackground handler, phone still receives incoming data calls, but with no sound 🤷🏽‍♂️

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I guess we can live without background notifications. AFAICT we do not consume push/RECEIVED_BACKGROUND anywhere. But I don't think this change is suitable for an upstream PR.

postNotification(null);
notifyReceivedBackgroundToJS();
Copy link
Member

Choose a reason for hiding this comment

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

Ok, I guess we can live without background notifications. AFAICT we do not consume push/RECEIVED_BACKGROUND anywhere. But I don't think this change is suitable for an upstream PR.

@aelmadani aelmadani merged commit aacf9af into master Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants