# Capacitor doesn't work with OneSignal

**URL:** <https://forum.ionicframework.com/t/capacitor-doesnt-work-with-onesignal/214803>\
**Category:** Capacitor\
**Created:** [September 10, 2021, 12:59am UTC](https://forum.ionicframework.com/t/capacitor-doesnt-work-with-onesignal/214803 "2021-09-10T00:59:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![japineda16](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@japineda16](https://forum.ionicframework.com/u/japineda16)\
**Post date:** [September 10, 2021, 12:59am UTC](https://forum.ionicframework.com/t/capacitor-doesnt-work-with-onesignal/214803/1 "2021-09-10T00:59:35Z")

</div>

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](https://ionicframework.com/docs/native/onesignal)), but it doesn’t work because in the xCode console throw me back this message as a warning

```auto
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](https://documentation.onesignal.com/docs/ionic-sdk-setup)) instead of Ionic doc. Now the warning that I got is this:

```auto
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:

```auto
Ionic:

   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:

   Capacitor CLI : 3.1.1
   @capacitor/core : 3.2.2

Cordova:

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

Utility:

   cordova-res : 0.15.3
   native-run : 1.4.1

System:

   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

```

---

<div class="post-metadata">

**Author:** ![jcesarmobile](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jcesarmobile/32/127095_2.png) [@jcesarmobile](https://forum.ionicframework.com/u/jcesarmobile)\
**Post date:** [September 10, 2021, 12:54pm UTC](https://forum.ionicframework.com/t/capacitor-doesnt-work-with-onesignal/214803/2 "2021-09-10T12:54:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![japineda16](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@japineda16](https://forum.ionicframework.com/u/japineda16)\
**Post date:** [September 10, 2021, 2:00pm UTC](https://forum.ionicframework.com/t/capacitor-doesnt-work-with-onesignal/214803/3 "2021-09-10T14:00:34Z")

</div>

I just ran the followed commands:

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

```
