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

[Bug]: TypeError: undefined is not an object (evaluating '_reactNativeOnesignal.default.setAppId') #1508

Closed
1 task done
jaykeny opened this issue Mar 28, 2023 · 5 comments
Labels

Comments

@jaykeny
Copy link

jaykeny commented Mar 28, 2023

What happened?

After following the setup process OneSignal.setAppId(I INSERTED MY ID HERE) is returning undefined.

Edit: It appears to be due to the latest react-native-onesignal beta version being automatically installed. It looks like there are some migration steps, which still resulted in the error
https://github.com/OneSignal/react-native-onesignal/blob/user_model/MIGRATION_GUIDE.md

Upon downgrading to react-native-onesignal 4.4.1 the issue is resolved once prebuilt.

Steps to reproduce?

Following setup guide, it triggers the error

What did you expect to happen?

It to work

OneSignal Expo SDK version

1.3.1

Platform

Android

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@brismithers brismithers transferred this issue from OneSignal/onesignal-expo-plugin Mar 29, 2023
@brismithers
Copy link
Contributor

Thanks for reporting @jaykeny , moving this to the react-native-onesignal repository as it seems to be related to the SDK rather than the expo plugin itself!

@brismithers
Copy link
Contributor

I've updated the npm repo to revert the latest version back down to 4.5.1. Version 5.0.0-beta-01 exists for anyone that wants it explicitly, or via the beta tag.

@jaykeny if you are up for helping us understand what errors you got attempting to use the 5.0.0 beta version please post them here!

@mannyuiux
Copy link

Getting the same issue in iOS as well, wasn't able to find a solution anywhere. Have reached out to OneSignal support team, no response.

@nan-li
Copy link
Contributor

nan-li commented Oct 23, 2023

Hi @mannyuiux, what issue are you running into?

That you want to use react-native-onesignal v4.x.x but is fetching v5.x.x from npm?

@jennantilla
Copy link
Contributor

Hello everyone! This issue will be closed out as it appears to have gone stale. If this is still a concern for anyone please respond and we will be happy to provide assistance!

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

No branches or pull requests

5 participants