Onesignal not work in ionic 4

#1

i config onesignal on my app according THIS

but it’s not work , it’s work before but now not, i think it’s relate new version ionic
if have any idea or troubleshooting method please guide

Ionic:

   ionic (Ionic CLI)  : 4.0.0 (C:\Users\MyGirlFriend\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.0.0

System:

   NodeJS : v8.11.0 (C:\Program Files\nodejs\node.exe)
   npm    : 5.6.0
   OS     : Windows 10

Environment:

   ANDROID_HOME : not set

TNX

Ionic 4: Object(…) is not a function