Ionic 3 ERROR: Method 'setInAppMessageClickHandler:' not defined in Plugin 'OneSignalPush'

Hi,
I am having this error when running my app on real device.

ERROR: Method ‘setInAppMessageClickHandler:’ not defined in Plugin 'OneSignalPush’

How can I detect what is causing this error?
Thanks!

Hi,

Same problem with Ionic 4 here :

ERROR: Method ‘setInAppMessageClickHandler:’ not defined in Plugin 'OneSignalPush’
FAILED pluginJSON = [“OneSignalPush344244341”,“OneSignalPush”,“setInAppMessageClickHandler”,[]]

I just asked the OneSignal support, I will post their answer here as soon as I receive something from their part

1 Like

Hi @mehdimtweb, finally I found a solution. Do you?
About your problem, I read Onesignal SDK is only available for ionic 1 to ionic 3. Check it out


Second, I see this problem is for incompatibility for the onesignal plugin. I am using the version 2.4.7 for ionic 3.9 (ios build on 4.5.5).
Third, check and re-configure all the steps from de Onesignal documentation.
If you still having no solution, you can contact me (facebook,com/deyvijam)
Greetings.

Hi,

I did find a solution, i was trying to change the class of an html element with document.querySelector in my component constructor, I don’t really know why but the onesignal plugin didn’t seem to like it very much !

Anyway, I got everything working now, thanks for your help :slight_smile:

1 Like