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

Instabug.addFileAttachment(with: URL) does not work as documented #485

Open
jonasman opened this issue Mar 6, 2024 · 1 comment
Open
Labels

Comments

@jonasman
Copy link

jonasman commented Mar 6, 2024

Steps to Reproduce the Problem

Create Instabug instance
use
Instabug.addFileAttachment(with: URL)
change the file, flush, close, whatever
Create a bug report

Expected Behavior

The file contains the latest data

Actual Behavior

The file contains the data when the addFile command was executed.

Instabug integration code

Instabug.start(withToken: instabugToken, invocationEvents: [.shake, .screenshot])
            Instabug.setLocale(.english)
            Instabug.setValue("XXXX", forStringWithKey: kIBGEmailFieldPlaceholderStringName)
            Instabug.setValue("YYYY", forStringWithKey: kIBGCommentFieldPlaceholderForBugReportStringName)

            Instabug.welcomeMessageMode = IBGWelcomeMessageMode.disabled

            Instabug.addFileAttachment(with: fileUrl)

SDK Version

12.2.0

iOS Version

17.4.0

Device Model

iPhone 14 Pro

[Optional] Project That Reproduces the Issue

private

@ahmedsalah196
Copy link
Contributor

ahmedsalah196 commented Mar 12, 2024

Hello @jonasman,
Thank you for reporting this. We're checking it.
Meanwhile, can you check if the following code will unblock you?

Instabug.willSendReportHandler = { report in
            report.addFileAttachment(with: fileUrl)
            return report
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants