Attachments

If you wish to upload additional files which will be attached to each bug report, you can do that by setting a delegate in BugReportingConfiguration:

AppeliumFeedback.start(
    apiKey: <#api key#>,
    bugReporting: .enabled(delegate: self)
)

And then implement BugReportingDelegate:

1
2
3
func bugReportAttachment() -> BugReportAttachment? {
    .init(fileName: "db_dump.sqlite", data: FileManager().contents(atPath: "db/main.sqlite")!)
}

Note

You can upload up to 3 files with each bug report.