Skip to content

[Bug]: No token returned after enabling RN new architecture  #1834

@radiodario

Description

@radiodario

What happened?

react-native-onesignal doesn't seem to work with new architecture (expo 53)

After upgrading to expo 53 and new arch, push token is returned as null and no notifications are delivered. This behaviour is both on iOS and android

Steps to reproduce?

1. Build app with RN new architecture
2. Register for notifications
3. Push token is returned as null

user becomes opted out

What did you expect to happen?

No notifications are received on the device, no push token is generated

React Native OneSignal SDK version

5.2.13

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

\^[[94m12:29:30 | INFO : Removing permission change handler \^[[0m
\^[[94m12:29:30 | INFO : Registering for notifications for user: XXXXXX \^[[0m
VERBOSE: updateNotificationTypes called: 15
VERBOSE: startedRegister: 1
VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
VERBOSE: requestPermission Called
VERBOSE: updateNotificationTypes called: 15
VERBOSE: startedRegister: 1
VERBOSE: getNotificationTypes:mSubscriptionStatus: -1
\^[[94m12:29:30 | INFO : PushNotificationsProvider: Current state: "registeringForNotifications" \^[[0m
\^[[94m12:29:30 | INFO : Push token received: 
null
\^[[0m
\^[[94m12:29:30 | INFO : PushNotificationsProvider: Current state: "pushNotificationsEnabled" \^[[0m

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions