Skip to main content

iOS API Reference

Entry point

Fidbek.shared

Methods

configure(token:shakeToOpenEnabled:)

Initializes SDK runtime behavior.

present()

Manually opens feedback flow.

identify(userId:name:email:)

Persists an optional SDK identity. At least one field is required.

clearIdentity()

Clears stored identity data for logout or account switch.

stop()

Stops shake detection listener.

Example

Fidbek.shared.configure(
token: "YOUR_TOKEN",
shakeToOpenEnabled: false
)

Fidbek.shared.identify(
userId: "user_123",
email: "talha@example.com"
)

Fidbek.shared.present()

Endpoint behavior

The report endpoint is fixed internally in the current SDK line:

https://api.fidbek.dev/v1/sdk/reports

0.3.0 notes

  • Bug form contains occurrence frequency selector for bug category.
  • Request payload includes locale metadata, optional occurrence_frequency, and persisted identity fields when provided.
  • UI language is selected from device locale for English (en), Turkish (tr), Spanish (es), French (fr), German (de), Portuguese (pt), Arabic (ar), Hindi (hi), Japanese (ja), and Simplified Chinese (zh-Hans), with fallback to English.
  • Identified email is used to prefill the contact field in the report form.
  • Public attachment staging helpers remain available for backward compatibility but are deprecated for new integrations.