Skip to content

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

Open
@jonasman

Description

@jonasman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions