Skip to content

[Due for payment 2025-10-23] iOS - Camera not displaying after returning from background #71608

Closed

Description

@Julesssss

Problem

The iOS app camera is not displaying correctly when returning from the background. It is toggling between working and not displaying on every background>reopen. the app eventually crashes.

  • Navigate to workspace chat that user has been invited to
  • Create Expense > Scan receipt > Toggle quick fire mode with the button
  • Background app while camera view should be displayed
  • Continue to reopen app and then background it again

Update: A second case I reproduced 13th oct is a new user activating the camera permission for the first time to take a receipt scan. I think the requirements are:

  • Clean install of the iOS app
  • Authenticate to user invited to a workspace
  • Navigate to their workspace chat
  • FAB > Scan receipt
  • Camera view not displayed
  • Switch to manual expense, then back to scan receipt
  • Camera works as expected

It seems to have been occuring for a while now, I tested as far back as 9.2.7.0 and it is occuring.

ScreenRecording_09-30-2025.12-32-09_1.MP4

Discovered via this bug, in which the app ALSO crashes after being backgrounded a few times.

Solution

Possibly related to the manual incremental setCameraKey logic here.

 setCameraKey((prev) => prev + 1)
Issue OwnerCurrent Issue Owner: @kubabutkiewicz
Issue OwnerCurrent Issue Owner: @RachCHopkins

Activity

  1. self-assigned this
    on Sep 30, 2025
  2. melvin-bot commented on Sep 30, 2025

    @melvin-bot

    Triggered auto assignment to @RachCHopkins (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. Julesssss commented on Sep 30, 2025

    @Julesssss
    ContributorAuthor

    Asking for help from expert contributors here.

  4. RachCHopkins commented on Oct 8, 2025

    @RachCHopkins
    Contributor

    Bumped the thread.

  5. kubabutkiewicz commented on Oct 8, 2025

    @kubabutkiewicz
    Contributor

    Hello, Jakub from Callstack here, I would like to work on this issue!

  6. kubabutkiewicz commented on Oct 9, 2025

    @kubabutkiewicz
    Contributor

    Hey @Julesssss can you confirm thats still happening? Because yesterday I was able to reproduce this just once and after syncing with main not able any more. The only thing is that when I am comming back from background there is a small flicker of the camera view, which is caused by changing the key (which you mentioned in the issue description). This changing the key everytime when we are comming from background so its always remounting the Camera view. I think this is the main issue here. As I understand this changing of the key was added to fix this issue #64295, I think its a bit a hacky solution so I think we should stablize the key passed to Camera view and find different solution for the mentioned issue.

  7. melvin-bot commented on Oct 13, 2025

    @melvin-bot

    @Julesssss, @RachCHopkins Eep! 4 days overdue now. Issues have feelings too...

  8. 11 remaining items

  9. changed the title [-]iOS - Camera not displaying after returning from background[/-] [+][Due for payment 2025-10-23] iOS - Camera not displaying after returning from background[/+] on Oct 16, 2025
  10. melvin-bot commented on Oct 16, 2025

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  11. melvin-bot commented on Oct 16, 2025

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.32-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2025-10-23. 🎊

    For reference, here are some details about the assignees on this issue:

  12. melvin-bot commented on Oct 16, 2025

    @melvin-bot

    @Julesssss @RachCHopkins @kubabutkiewicz The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  13. RachCHopkins commented on Oct 20, 2025

    @RachCHopkins
    Contributor

    Do we need a regression test for this @kubabutkiewicz?

  14. moved this from CRITICAL to AWAITING DEPLOYMENT in [#whatsnext] #qualityon Oct 21, 2025
  15. RachCHopkins commented on Oct 29, 2025

    @RachCHopkins
    Contributor

    @kubabutkiewicz just making you the owner here so you see my message!

  16. Julesssss commented on Nov 12, 2025

    @Julesssss
    ContributorAuthor

    Do we need a regression test for this @kubabutkiewicz?

    I don't think so. Lets close this out Rach

  17. moved this from AWAITING DEPLOYMENT to Done in [#whatsnext] #qualityon Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions