Questions tagged [react-native-onesignal]
62 questions
2
votes
1 answer
How to handle push notifications when the user is not logged in?
I am confused about how to handle notifications in the react-native app if the user is not logged in. I send push notifications via OneSignal to the application but if a user is not logged in I should not send a notification, how can I check user is…

jhintstone
- 83
- 5
2
votes
1 answer
React Native Firebase - Android 10 notification does not appear after a while
By the way: I am not sure that is about Android version but my Android 9 device is working correctly, not working on Android 10
Notifications work for other cases (ex: when app is active or background)
The problem is: when app is waiting on…

Muammer Alkis
- 56
- 6
2
votes
2 answers
Test OneSignal Push Notification on iOS Simulator
I've set up react-native-onesignal on my project to implement Push Notification using OneSignal.
It is possible to test Push Notification on iOS simulators since Xcode 11.4 Beta. I created JSON formatted apns file to test Push Notification on…

michael
- 4,053
- 2
- 12
- 31
2
votes
1 answer
Onesignal adding '[modified]' to header or body of my notifications for some users
I've had a few users reporting that their notification data contains [modified] at the end of the header of the body of their notifcations.
I have no idea where this could come from as it only appears for some users and I'm unable to reproduce it on…

Hugo
- 2,073
- 6
- 23
- 46
1
vote
0 answers
How to change Notification Image or Icon in React Native with OneSignal Dashboard?
For doing this first you need to go to this url and create icon by following the creating steps
-After creating icon then click on download button.
-you will see zip file then extract that file then you will see something like this
enter image…
1
vote
1 answer
React Native OneSignal: User not prompted for consent on Android
In my React Native app, I want to prompt the user to consent to receiving OneSignal push notifications. I have the code OneSignal.promptForPushNotificationsWithUserResponse(), which on iOS successfully prompts the user, but on Android it doesn't.…

gkeenley
- 6,088
- 8
- 54
- 129
1
vote
0 answers
React Native OneSignal 3.9.3 not receiving push notifications
I recently updated my React Native app to compile to Android 12.
in build.gradle
targetSdkVersion = 31
compileSdkVersion = 31
I have managed to create a workaround for making React Native OneSignal 3.9.3 compatible with Android 12, and in-app…

gloriamaris
- 11
- 2
1
vote
0 answers
ERROR Could not load RNOneSignal native module. Make sure native dependencies are properly linked
I am trying to implement One Signal on my Expo application without ejecting my application.
I followed all the steps in the document but I get an error.
Could not load RNOneSignal native module. Make sure native dependencies are properly…
1
vote
0 answers
React Native OneSignal: deviceState doesn't show subscribed until second time user logs in
In my React Native app, I initialize my OneSignal instance with OneSignal.setAppId(), and then attempt to grab the UserID using OneSignal.getDeviceState(). My code looks like this:
OneSignal.setAppId("");
let getDeviceState = async () => {
…

gkeenley
- 6,088
- 8
- 54
- 129
1
vote
2 answers
Xcode: Error Build failed while building on iPhone
I am trying to run my application on my iPhone and receiving the following error. It is working fine on Simulator and release builds are also getting built.
error build: Build input file cannot be found:…

Md Javed Akhtar
- 81
- 1
- 12
1
vote
0 answers
Expo & OneSignal Issues on Mac M1 Pro
I'm hoping someone can help. I'm following the documentation to the letter here: https://documentation.onesignal.com/docs/react-native-expo-sdk-setup
And no matter what I do, even build a completely fresh project and try from there, I get:
Invariant…

LukeVenter
- 439
- 6
- 20
1
vote
1 answer
Onesignal noftification delay on react-native
When sending push via onesignal to a react-native app, if I include data field in notification body it takes almost 26 seconds to reach the device but without data field it reaches within 1-2 seconds only. What can be the cause? I tried sending from…

Yehya
- 506
- 1
- 5
- 16
1
vote
2 answers
Can I test OneSignal push notification on Expo platform?
I'm developing Mobile App for IOS and Android and using the Expo platform during development. In this way, simply with a QR code, I can test the application in seconds for both devices Android and IOS.
I'm going to implement OneSignal Push…

Erdi
- 1,824
- 3
- 21
- 31
1
vote
1 answer
Need React Native OneSignal background listener for Android & IOS
I want background listener to update status, just like firebase provide us messages().setBackgroundMessageHandler.
One signal version
"react-native-onesignal": "^4.0.3",

Zuhair Naqi
- 1,162
- 11
- 21
1
vote
0 answers
React Native Onesignal: bundle is restarted when app is in foreground, ANDROID
I faced an unexpected bug today,
react-native 59.8
only android issue
I am using onesignal and everything is working fine (Except when my app is in foreground).
I have initialised my onesignal in app.js
OneSignal.init(ONE_SIGNAL_DRIVER);
and my…

Sarmad Shah
- 3,725
- 1
- 20
- 42