/ SDKs / Flutter
SDKs
Chat SDKs Flutter v4
Chat SDKs Flutter
Chat SDKs
Flutter
Version 4

Cancel a scheduled message

Copy link

Use the cancelScheduledMessage() method to cancel a message that a user has scheduled to send at a later time.

try {  
  // Cancel a scheduled message.
  await groupChannel.cancelScheduledMessage(
    scheduledMessageId: SCHEDULED_MESSAGE_ID,
  );
} catch (e) {
  // Handle error.
}