Ionic v3 Uncaught (in promise): TypeError: Object(...) is not a function

Hi

We are using Ionic v3 with angular 4
@ionic-native/wonderpush”: “^5.29.0”
“wonderpush-cordova-sdk”: “^2.2.0”

We have followed the docs and added the following code into our app.component
import { WonderPush } from ‘@ionic-native/wonderpush/ngx’;
constructor(
private wonderPush: WonderPush,
) {
platform.ready().then(() => {
this.wonderPush.subscribeToNotifications()
}
}

We are getting the following error when using ionic serve or running in the emulator:
Uncaught (in promise): TypeError: Object(…) is not a function
TypeError: Object(…) is not a function
at WonderPush.subscribeToNotifications

Appreciate any advice/help for resolving this issue. :slight_smile:

Thank you!

Thanks for contacting us. We are compatible with Ionic v4+.

Kind regards,

Stéphane.