GoCarrot / teak-ios

Teak SDK for iOS
Apache License 2.0
3 stars 1 forks source link

Support report_client_error in server response #27

Closed AlexSc closed 4 years ago

AlexSc commented 4 years ago

For Reasons we want the server to be able to indicate that an error in the client integration has been detected.

The currently proposed way to do this is to have the server include a report_client_error key in any response where an error has been detected. This key will contain an object which MUST contain a message key and MAY contain a title key.

If report_client_error is in a server response, and enhanced integration checks are enabled, the SDK should show an alert dialog containing the message and optional title. If the server did not provide a title, the SDK should use a default title.