Pushwoosh / pushwoosh-react-native-plugin

Other
57 stars 43 forks source link

[Bug]: ERROR TypeError: Cannot read property 'init' of null, js engine: hermes #152

Closed AlbinNewSeed closed 10 months ago

AlbinNewSeed commented 10 months ago

Documentation

Description

Cannot call init or register in a fresh react-native project with latest version.

Running into the following error on app launch:

ERROR TypeError: Cannot read property 'init' of null, js engine: hermes

Bug severity

Low

Steps to Reproduce

  1. Initialize a new react-native project @ 0.72.6
  2. Try and run Pushwoosh.init and Pushwoosh.register

Your Pushwoosh React Native Plugin version

6.1.23

Last worked Pushwoosh React Native Plugin version (if any)

No response

Affected platforms

Affected OS versions and/or devices

Android 14 on a Google Pixel 8 Pro, "react-native": "0.72.6",

Workaround

No response

Relevant log output

No response

AlbinNewSeed commented 10 months ago

I have another project with react-native 0.68 and it works fine there, with the exact same code.

Anyone who can test and see if they can get it working in a new react native project?

enginseer-dev commented 10 months ago

Hello, @AlbinNewSeed

Thank you for bringing this to our attention and for the detailed report. We have successfully replicated the issue on our end and are actively investigating the cause. We will update you as soon as we find the root cause of the issue.

mssoliveira commented 10 months ago

Hi, I have the same problem, I built the same code a few days ago and worked normally, but since Tuesday (10/31) I have had this problem.

ERROR TypeError: null is not an object (evaluating 'PushwooshModule.init')

"pushwoosh-react-native-plugin": "^6.1.23", "react-native": "0.69.6",

AlbinNewSeed commented 10 months ago

Hello, @AlbinNewSeed

Thank you for bringing this to our attention and for the detailed report. We have successfully replicated the issue on our end and are actively investigating the cause. We will update you as soon as we find the root cause of the issue.

Thanks!

shahjahanpak commented 10 months ago

I am getting the same error TypeError: Cannot read property 'init' of undefined at PushNotification.init

"pushwoosh-react-native-plugin": "6.1.23", "react-native": "0.72.4"

mssoliveira commented 10 months ago

some solution?

wfhm commented 10 months ago

Fixed in 6.1.24.