SOLVED: live update gives me a "Network Error"

Hello,
i’m following the live update capacitor procedure but i get this message:

⚡️  To Native ->  LiveUpdates sync 87543445
LiveUpdates - Checking for update for app xxxx
⚡️  TO JS {"message":"Failure occured during check step.\nNetwork request failed with status code 422 when attempting to fetch resources from https:\/\/api.ionicjs.com\/apps\/xxxx\/channels\/check-device","appId":"xxxx","failStep":"CHECK"}
⚡️  [error] - Unhandled Promise rejection: {"message":"Failure occured during check step.\nNetwork request failed with status code 422 when attempting to fetch resources from https://api.ionicjs.com/apps/xxxx/channels/check-device","appId":"xxxx","failStep":"CHECK"} ; Zone: <root> ; Task: Promise.then ; Value: {"message":"Failure occured during check step.\nNetwork request failed with status code 422 when attempting to fetch resources from https://api.ionicjs.com/apps/xxxx/channels/check-device","appId":"xxxx","failStep":"CHECK"} undefined

i’ve added in my app.component.ts this:

 async checkLiveUpdate() {
    // Register event to fire each time user resumes the app  
    App.addListener('resume', async () => {
      console.log('resume');
      this.storage.get('shouldReloadApp').then(async (shouldReloadApp) => {
        alert(shouldReloadApp);
        if (shouldReloadApp) {
          await LiveUpdates.reload();
        }
        else {
          const result = await LiveUpdates.sync();
          this.storage.set('shouldReloadApp', result.activeApplicationPathChanged);
        }
      });

    });

    // First sync on app load
    const result = await LiveUpdates.sync();
    this.storage.set('shouldReloadApp', result.activeApplicationPathChanged);
  }

any idea on what i’m doing wrong?

ERROR
Error: Uncaught (in promise): Object: {"failStep":"CHECK","appId":"aa8d6f20","message":"Failure occured during check step.\nNetwork request failed with status code 422 when attempting to fetch resources from https://api.ionicjs.com/apps/aa8d6f20/channels/check-device"}
Y — polyfills.6826101f398f79dc.js:1:16057
(anonymous function) — polyfills.6826101f398f79dc.js:1:15139
(anonymous function) — polyfills.6826101f398f79dc.js:1:15249
o — main.8d0b18c6e6a09a86.js:1:525470
ke — main.8d0b18c6e6a09a86.js:1:525692
onInvoke — main.8d0b18c6e6a09a86.js:1:251722
run — polyfills.6826101f398f79dc.js:1:2005
(anonymous function) — polyfills.6826101f398f79dc.js:1:16846
onInvokeTask — main.8d0b18c6e6a09a86.js:1:251542
runTask — polyfills.6826101f398f79dc.js:1:2626
T — polyfills.6826101f398f79dc.js:1:9275

these are my destinations:

and my capacitor.config.ts

    LiveUpdates: {
      appId: 'aa8d6f20',
      channel: 'francesco',
      autoUpdateMethod: 'background',
      maxVersions: 3
    },
⚡️  TO JS {"failStep":"CHECK","message":"Failure occured during check step.\nNetwork Error - Impossibile completare l’operazione. (Errore IonicLiveUpdates.NetworkClientError 0).","appId":"aa8d6f20"}
⚡️  [error] - ERROR Error: Uncaught (in promise): Object: {"failStep":"CHECK","message":"Failure occured during check step.\nNetwork Error - Impossibile completare l’operazione. (Errore IonicLiveUpdates.NetworkClientError 0).","appId":"aa8d6f20"}

if I put a random name as channel, doesn’t give me an error, but doesn’t update anything

  TO JS {"activeApplicationPathChanged":false,"liveUpdate":{"channel":"random","appId":"aa8d6f20"},"source":"cache"}
⚡️  [log] - {"activeApplicationPathChanged":false,"liveUpdate":{"channel":"random","appId":"aa8d6f20"},"source":"cache"}

I’ve been in touch with AppFlow’s Team and thanks to them we found what the issue was:
my build were numbered as follows:

3.1.004

liveUpdates Api doesn’t work well with build numbers that have 0 as first digit
so in my case i had to make a new build with version 3.1.100, 3.1.101, 3.1.102 etc
and everything started working correctly without modifying my current code.

Great customer service experience,
maby thanks to @netkow and all the guys from CS