hms-react-native-plugin icon indicating copy to clipboard operation
hms-react-native-plugin copied to clipboard

HMS push not working in expo

Open alalalalalalal2 opened this issue 1 year ago • 1 comments

Description I made a prebuild in expo, added all the connections in gradle, but nativeModules in the module is an empty object

Expected behavior Receiving a push token

Current behavior Got an error LOG NativeModules {} ERROR TypeError: Cannot set property 'Type' of null, js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes

Environment

  • Platform: React-Native+Expo
  • Kit: Push
  • Kit Version ^6.12.0-300
  • OS Version [e.g. Android 11]

alalalalalalal2 avatar Feb 16 '24 05:02 alalalalalalal2

I'm facing the same problem

ermander avatar Mar 11 '24 15:03 ermander