Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null is not an object (evaluating 'ForegroundServiceModule.createNotificationChannel #30

Open
Temirtator opened this issue Sep 15, 2020 · 1 comment

Comments

@Temirtator
Copy link

Error happens when creating notification channel

useEffect(() => {
    const channelConfig = {
      id: 'channelId',
      name: 'Channel name',
      description: 'Channel description',
      enableVibration: false,
    };
    VIForegroundService.createNotificationChannel(channelConfig);

    startWatchPosition();
    _init();
  }, [_init]);
@sfreeman28
Copy link

I was having the same issue.
The VIForegroundService was not showing up in NativeModules.

Doing a simple
rm -rf node_modules && yarn
was not enough

I had to clear my android build folder too
cd android/app && rm -rf build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants