wonderpush / wonderpush-cordova-sdk

Cordova SDK for WonderPush − Advanced push notification service for mobile applications and Websites. High volume, fast delivery and full-featured starting €1/month.
https://www.wonderpush.com
7 stars 6 forks source link

Error if we called the subscribeToNotifications method without an argument [Android] #22

Open Lerolben opened 1 year ago

Lerolben commented 1 year ago

Problem appears only in Android. For wonderpush/wonderpush-cordova-sdk versions higher than 3.2.4

If we called the subscribeToNotifications method without an argument, in Android Studio we can see:

To native (Cordova plugin): callbackId: WonderPushPlugin1671177871, service: WonderPushPlugin, action: subscribeToNotifications, actionArgs: [null]

File: http://localhost/5587.bbfd13ac199b513b.js - Line 1 - Msg: [WonderPush] error calling native method: [object Arguments]

Calling the method subscribeToNotifications with the true or false parameter works fine.

The parameter is not required, so it should work by default without it.