Worker feedback
The Worker Feedback feature enables you to send messages to the connected devices in order to play specific feedback sequences. Use it to trigger your scanner's feedback profiles asynchronously to notify workers about an event to enhance their workflow and help with daily tasks completion.
Worker Feedback commands, like all commands that trigger an action on a scanner, are queued in the ConnectSDK
by default. To learn more, see Queueing behavior.
Trigger feedback using iOS SDK
To trigger a feedback a connected scanner, PGCentarlManager
provides the PGFeedbackManager
property with the playFeedbackSequence
method.
The method accepts a PGCommand
with PGFeedbackRequest
data containing the PGPredefinedFeedback
ID. If the request fails, an Error
object will be returned via the completion handler block.
Available PGPredefinedFeedback
IDs are:
PGPredefinedFeedbackSuccess
- Positive feedbackPGPredefinedFeedbackError
- Negative feedbackPGPredefinedFeedbackNeutralYellow
- Neutral feedback with yellow LED colorPGPredefinedFeedbackNeutralPurple
- Neutral feedback with purple LED colorPGPredefinedFeedbackNeutralCyan
- Neutral feedback color with cyan LED color.
PGFeedbackManager *feedbackManager = central.feedbackManager; PGFeedbackRequest *feedbackRequest = [[PGFeedbackRequest alloc] initWithFeedback:PGPredefinedFeedbackSuccess]; PGCommand *command = [[PGCommand alloc] init:feedbackRequest]; [feedbackManager playFeedbackSequenceWithFeedbackCommand:command completionHandler:^(NSError * _Nullable error) { //handle response }];
let feedbackManager = central.feedbackManager let feedbackRequest = PGFeedbackRequest(feedback: .success) let command = PGCommand(feedbackRequest) feedbackManager?.playFeedbackSequence(withFeedbackCommand: command, completionHandler: { (error) in //handle response })