Capacitor doesn't work with OneSignal

Hi! I just installed OneSignal Cordova Plugin and the @ionic-native/onesignal, in my first try I followed step by step the official guide of ionic about OneSignal (OneSignal | OneSignal Cordova SDK Push Notification Plugin), but it doesn’t work because in the xCode console throw me back this message as a warning

tried calling OneSignal.startInit, but the OneSignal plugin is not installed.

And obviously in my panel of OneSignal doesn’t detect any device.
After this try, I reed the official doc of OneSignal and Ionic + Capacitor, and I followed those steps (Ionic & Capacitor SDK Setup) instead of Ionic doc. Now the warning that I got is this:

2021-09-09 20:19:40.146713-0400 App[50104:1022578] WARNING: appId set, but please call setLaunchOptions(launchOptions) to complete OneSignal init!
2021-09-09 20:19:40.736098-0400 App[50104:1022578] KeyboardPlugin: resize mode - native
⚡️  Loading app at capacitor://localhost...
2021-09-09 20:19:41.351849-0400 App[50104:1022578] WF: === Starting WebFilter logging for process App
2021-09-09 20:19:41.352108-0400 App[50104:1022578] WF: _userSettingsForUser : (null)
2021-09-09 20:19:41.352326-0400 App[50104:1022578] WF: _WebFilterIsActive returning: NO
⚡️  [log] - onscript loading complete
⚡️  WebView loaded
⚡️  [log] - constructor SwUpdate no activado...
⚡️  [log] - checkForUpdate catch...
⚡️  To Native ->  App addListener 56516527
⚡️  [log] - deviceready has not fired after 5 seconds.
⚡️  [log] - Channel not fired: onCordovaReady
⚡️  [warn] - Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.

And the issue is the same, I cant see any of my devices connected in OneSignal. Please I need help.

This is my Ionic info:


   Ionic CLI                     : 5.4.16
   Ionic Framework               : @ionic/angular 5.7.0
   @angular-devkit/build-angular : 12.0.5
   @angular-devkit/schematics    : 12.0.5
   @angular/cli                  : 12.0.5
   @ionic/angular-toolkit        : 4.0.0


   Capacitor CLI   : 3.1.1
   @capacitor/core : 3.2.2


   Cordova CLI       : 6.2.0
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (0 plugins total)


   cordova-res : 0.15.3
   native-run  : 1.4.1


   ios-sim : ios-sim/9.0.0 darwin-x64 node-v12.18.4
   NodeJS  : v12.18.4 (/usr/local/bin/node)
   npm     : 6.14.8
   OS      : macOS Big Sur
   Xcode   : Xcode 12.5.1 Build version 12E507

How did you install the plugin? Did you run npx cap sync after installing it?

I just ran the followed commands:

npm install onesignal-cordova-plugin
npm install @ionic-native/onesignal
ionic cap sync

Here’s my panel

Here’s my console

OneSignal Code:

import {Platform} from '@ionic/angular';
import {OneSignal as signal} from 'onesignal-cordova-plugin';

    OneSignalInit(): void {
        this.platform.ready().then(() => {
            // NOTE: Update the setAppId value below with your OneSignal AppId.
            signal.setLogLevel(6, 0);
            signal.setNotificationOpenedHandler((jsonData) => {
                console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));

            // iOS - Prompts the user for notification permissions.
            // tslint:disable-next-line:max-line-length
            //    * Since this shows a generic native prompt, we recommend instead using an In-App Message to prompt for notification permission (See step 6) to better communicate to your users what notifications they will get.
            signal.promptForPushNotificationsWithUserResponse((accepted) => {
                console.log('User accepted notifications: ' + accepted);