-
Notifications
You must be signed in to change notification settings - Fork 376
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
FATAL: OneSignal AppId: (null) - AppId is null or format is invalid, stopping initialization. Example usage: 'b2f7f966-d8cc-11e4-bed1-df8f05be55ba' #1598
Comments
The app is working fine in android without any build errors. I'm facing this issue when I try to build app for IOS. |
Hi @ashwinThomas04 thank you for your patience. Are you still having this issue? If so would you be able to share the initialization code you used? |
Hi @jennantilla , I reverted back to previous react-native version as I was still facing the issue.
This is the initialization code. I tried removing all instances of Onesignal from the js code and run the app in the latest version, but the error was coming up again in IOS. |
@jennantilla , this error came up when I migrated from 4.4.1 to 5.0.2, as a part of updating the app. I followed the migration guides and believe I made the necessary changes. The app was working fine in android and there was no issue in receiving notifications either. But when I tried building for IOS, the app was getting stuck at the splash screen after the build succeeded message. This was the only error I could find in the metro console. I rechecked the onesignal documentation a few times, but I'm not sure if I missed out anything during the migration process. |
I had exactly the same problem on version |
same issue in cordova 12.0.0
FATAL: OneSignal AppId: (null) - AppId is null or format is invalid, stopping |
Hi I have updated the whole application to Cordova 12. Added the Onesignal plugin and got the same error when I started the Iphone 15 emulator. I solved it by adding a setTimeout.
in One signal Subscriptions I have the Subscription ID => Simulator Iphone 17.0.1 |
Same error happened today for me with latest Capacitor version. Adding a small timeout seems to fix it - can someone look into it? |
Facing the same issue, while running the app in Xcode. Anyone able to resolve it? FATAL: OneSignal AppId: (null) - AppId is null or format is invalid, stopping initialization. |
Facing the same issue with a brand new installation of cordova, with only the onesignal plugin and the basic helloworld demo app. The onesignal plugin spits out this error :FATAL: OneSignal AppId: (null) even before the deviceready function is called. |
Hi everyone, since you are using one of our cross-platform SDKs, this is a misleading error message that prints from the integration of our cross platform SDK with our native iOS SDK. Please check your logs to see if the following prints after the FATAL log, that the App ID is successfully set, so you can safely ignore the error log.
This is an alarming error log and misleading, we will work on suppressing or rewording the log. |
I've reverted to version 3.3.1 and the error has been resolved. I can confirm that the above is not printed after the fatal error. Heres a copy of my log before i reverted back to v3.3.1
Its worth noting that onesignal is not initializing and the functions are not available to the app. for example when i try to call the log function:
The error everyone is describing is occurring BEFORE the deviceready function. Also - specifically for me I'm using onesignal-cordova-plugin rather than react-native-onesignal but the error is exactly the same which is why i posted here |
What happened?
Recently updated to 5.0.2 to 4.4.1 and made the necessary migration changes. But facing this issue everytime I build the app. The app seems to be stuck with only this in the log. Its working fine for android. Is there something I missed during migration.
Steps to reproduce?
What did you expect to happen?
I expected the app to not crash.
React Native OneSignal SDK version
5.0.2
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: