WixChat onMessage Problem > Custom App > Events.js

After the latest SCOPS update, there is a problem with Wixchat onmessage function in Events.js file in Custom APP

It works fine in events.js file in site code, but code in > events.js file in Custom App does not work,

Is there a permission scope for Custom App to read wix-chat-backend-onmessage?
Custom App is already granted inbox and wixchat permissions.
Is this a limitation? Is it a bug?
It was working fine with Custom APP a few weeks ago.

We tested other events to see if it was a general problem, but the problem is only in the wixchat onmessage function.


/**
 * ********************************
 * Custom APP Backend event code - events.js *
 * ********************************
 */

export async function wixChat_onMessage(event) {
  const chatMessage = event.payload.text;
  console.log("SİTEPAGE A Message Received " + chatMessage);
/* works in events.js on the Site - doesn't work in events.js in Custom APP */
}

export async function wixBookings_onBookingCanceled(event) {
  const eventTrigger = event.trigger;
  const bookingId = event.booking._id;
console.log("SİTEPAGE booking cancelled " + event);
}
/*It works fine in custom app. */


export async function wixBookings_onBookingConfirmed(event) {
  const eventTrigger = event.trigger;
  const bookingId = event.booking._id;
  console.log("SİTEPAGEbooking confirm " + event);
/*It works fine in custom app. */
}


export async function wixMembers_onMemberCreated(event) {
  const memberNickname = event.entity.profile.nickname;
  const creationEventId = event.metadata.id;
  console.log("SİTEPAGE members created" + event);
/*It works fine in custom app. */

}

> Custom App Permission Scopes
> API Category
> Permission Scope
*> Wix Developers *
> Read site, business, and email details
> The app will view your basic site info (name, language, currency, and installed Wix apps) and business details (email, phone, address, and more). It will also read the site owner’s Wix login email.
*> *
*> business info *
> Manage Business Profile
> Read and manage the site’s business profile information.
*> *
*> Wix Stores *
> Manage Stores
> Can view and manage store products, collections, orders, sales channels, store settings, shipping and tax.
*> *
*> Wix Payments *
> Managed Payments- All Permissions
> Manage all payments permissions.
*> *
*> Wix Analytics *
> Site Analytics - read permissions
> Request permission to read site analytics data.
*> *
*> Wix Data *
> Read Data Items
> Request permission to read content in data collections
*> *
*> Wix Data *
> Manage Data Backups
> Request permission to manage data collections backups.
*> *
*> Wix Events *
> Read Events - all read permissions
> Request permission to read the site’s Wix Events data, including events, orders and guest lists. This permission scope contains all of the read Events permissions.
*> *
*> business info *
> Manage Business Contact
> Read and manage the site’s business contact information.
*> *
*> Wix Data *
> Manage Data Indexes
> Request permission to access, create, and modify data collection indexes
*> *
*> Wix Events *
> Manage Events - all permissions
> Request permission to read, create and modify the site’s Wix Events data, including events, orders and guest lists. This permission scope contains all of the Events permissions.
*> *
*> Wix Chat *
> Manage Chats
> Request permission to read and send chat messages.
*> *
*> business info *
> Manage Business Schedule
> Read and manage the site’s business schedule information.
*> *
*> paylinks *
> Manage Paylinks
> Allows to manage Payment Links, Payment Links Settings and Payment Links Payments.
*> *
*> Business Info *
> Manage Consent Policy
> Request permission to read and manage the default consent policy
*> *
*> identity *
> SCOPE.IDENTITY.MANAGE-SITE-POLICIES
> get or update site policies in services: security policy service, sign on policy service, site exposure service
*> *
*> Wix Data *
> Manage External Database Connections
> Request permission to access and manage external database connections
*> *
*> Search *
> Read Site Documents
> Request permission to read site documents.
*> *
*> Inbox *
> Manage Inbox Messages
> Request permissions to read and send chat messages on behalf of the site and visitors.
*> *
*> Wix Developers *
> Manage Embedded Scripts
> Request permission to read, create and modify embedded scripts on the site.
*> *
*> WIX-CRM *
> Access Verticals by Automations
> INTERNAL SCOPE
*> *
*> wix cashier *
> Read Payments
> Request permission to read the site’s Wix Cashier transactions.
*> *
*> notifications *
> Manage Notifications
> Request permission to manage and trigger notifications.
*> *
*> Wix Data *
> Data Mover Manage Jobs
> Permits all data movement jobs operations on a site
*> *
*> Wix Data *
> Manage All Data Resources
> Request permission to access and manage all data resources.
*> *
*> Wix Data *
> Write Data Items
> Request permission to add and modify content in existing data collections
*> *
*> Velo *
> Manage Secrets
> Request permission to read and manage site secrets
*> *
*> Inbox *
> Read Inbox Messages
> Request permission to read chat messages.
*> *
*> wixcode *
> Remote Machine Read Write Files
> Read and Write remote machine files
*> *
*> Wix Data *
> Manage Data Items
> Request permission to access and manage content in existing data collections.
*> *
*> Contacts & Members *
> Manage Members and Contacts - all permissions
> Request permission to read, create and modify the site’s Wix Contacts and Members data, including labels, extended fields and form submissions. This permission scope contains all of the Contacts, Members and CRM permissions.
*> *
*> Wix Developers *
> Read Site Owner Email
> Request permission to read site owner’s email address.
*> *
*> rise *
> Automation Trigger Read
> Automation Trigger Read
*> *
*> app-plugins *
> Read Site Plugin Status
> Request permission to read the placement status of the app’s site plugins.
*> *
*> Wix Data *
> Manage Data Collections
> Request permission to access and manage data collection structure information
*> *
*> Site Content *
> Read Site URLs
> Read URLs for the Wix site.