I'm seeing this weird error.
TypeError: null is not an object (evaluating 'IntercomEventEmitter.UNREAD_COUNT_CHANGE_NOTIFICATION')
I followed the guide on the official Github repo https://github.com/intercom/intercom-react-native#android.
After trying the manual linking, I get a different error when building the app.
> Task :intercom-react-native:generateDebugRFile FAILED
Execution optimizations have been disabled for task ':intercom-react-native:generateDebugRFile' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/bryamrodriguez/src/sammy-native/node_modules/@intercom/intercom-react-native/android/build/intermediates/packaged_manifests/debug'. Reason: Task ':intercom-react-native:generateDebugRFile' uses this output of task ':intercom_intercom-react-native:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_dependencyfor more details about this problem.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':intercom-react-native:generateDebugRFile'.
> A failure occurred while executing com.android.build.gradle.internal.res.GenerateLibraryRFileTask$GenerateLibRFileRunnable
> /Users/bryamrodriguez/src/sammy-native/node_modules/@intercom/intercom-react-native/android/build/intermediates/local_only_symbol_list/debug/R-def.txt
I'm using:
react native: 0.69.6
@intercom/intercom-react-native: 3.0.5
Device: Pixel 4 API 33