76 questions
0
votes
1
answer
41
views
Critical notifications sound not playing OneSignal - ios
I'm having issue that notifications sounds doesn't play, specially for critical notifications i'm using react native.
i already have entitlement and approval from apple
i have the sound file .wav 3 ...
0
votes
1
answer
61
views
How to get OneSignal's response raw payload and additional data on iOS?
We have a mobile app written in ReactNative (Android & iOS). react-native-onesignal is used for handling push notification. Now we need to be able to process the notification immediately after is ...
0
votes
0
answers
37
views
Why additional data on OneSignal's response is null?
Our mobile app is written using ReactNative. We need to able to handle the push notification response even if the app is minimized/on background, so some native code is necessary.
Here's the Android ...
0
votes
0
answers
25
views
Does react-native-onesignal support background processing?
Consider this code (tested on RN 0.71, react-native-onesignal 5.2.8):
const handleForegroundNotification = (event:any) => {
console.log('Foreground notification detail: ',JSON.stringify(event));...
1
vote
1
answer
54
views
How to play notification sound using React Native TTS when OneSignal notification is received?
We use OneSignal to deliver payment notification to our app. Now, beside showing notification on the notification toolbar, we'd also like to play sound (using React Native TTS), something like this on ...
0
votes
1
answer
191
views
React Native iOS build fails: no such module 'OneSignalExtension' in OneSignalNotificationServiceExtension
I'm working on a React Native app with an iOS target, and I'm getting a build error related to a OneSignal Notification Service Extension. The build fails with the following error:
SwiftEmitModule ...
2
votes
0
answers
481
views
React Native iOS Build Failed: fmt/src/format.cc compilation error after downloading Pod file
I am working on a React Native project, and after successfully downloading the Pod file, I am facing a build failure when running the app on iOS. Here’s what happens:
I run the following command to ...
1
vote
1
answer
260
views
Live Activity Update Triggers Sound and Vibration Despite sound: "nil" Setting
When updating a Live Activity via OneSignal’s API, the notification sound plays even if sound: "nil" or ios_sound: "nil" is set in the request payload. Additionally, if the device ...
0
votes
0
answers
59
views
Azure devops pipeline + onesignal expo plugin
I am building an expo-based react native app using azure devops pipeline. I have setup my YAML pipeline and I managed to build and publish the application to both stores (Android & iOS).
After ...
2
votes
1
answer
200
views
Onesignal Live Activity Push To Start Issue
I am working on live activities but couldn't work it properly. I am using react native SDK. I follow documentation step by step. My live activity works if I start from code. But If I try to push to ...
0
votes
1
answer
202
views
Could not resolve com.google.firebase:firebase-messaging:{require [21.0.0, 23.4.99]; prefer 23.4.0}. React Native
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve com....
5
votes
4
answers
6k
views
Invalid Executable. The executable 'appname.app/Frameworks/OneSignal.framework/OneSignal' contains bitcode. (ID: XXXX)
I get this error trying to upload an archived app to Apple Store.
This error appears after update to MacOS: Sequioa 15.0 and XCode 16.
Error print
I tryed to downgrade XCode, but it seems to not be ...
0
votes
0
answers
311
views
React Native Deeplinking with Push Notifications Doesn't Work when App is closed
I'm trying to redirect the user to a specific screen when tapping on a push notification, it works fine when the app is visible (with both Onesignal & RN-firebase/messaging) or even standing by in ...
0
votes
0
answers
142
views
Dependency problem while adding onesignal to an existing react native project
I'm integrating OneSignal into my React Native application, but I'm encountering a Firebase dependency conflict error when trying to make a debug build. My React Native version is 0.62.3, Gradle ...
1
vote
0
answers
346
views
React-native IOS build PhaseScriptExecution error
PhaseScriptExecution [CP-User]\ Generate\ Specs /var/root/Library/Developer/Xcode/DerivedData/AwesomeProject-ctijgwfuqsfcgvbuoytyyjefesnx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/...
1
vote
2
answers
629
views
Trying to subscribe to oneSignal in a React Native App
Hello I have created a new 17.1 ReactNative app and have incorporated OneSignal.
According to the example it should subscribe but it does not.
I am also testing this on a physical device.
This runs, ...
0
votes
0
answers
159
views
React Native and Onesignal
Could not load RNOneSignal native module. Make sure native dependencies are properly linked.
I want to send notifications in a WebView application with OneSignal, but I keep getting this error, how ...
1
vote
0
answers
196
views
React native 'OneSignal/OneSignal.h' file not found
So as in title I'm getting 'OneSignal/OneSignal.h' file not found error while trying to build my react-native app through xcode, but the thing is that it's happening ONLY for debug build (which is the ...
0
votes
1
answer
415
views
Multiple commands produce '.../Frameworks/OneSignalExtension.framework
I'm encountering a 'Multiple commands produce' error related to OneSignalExtension.framework in my React Native iOS app (Xcode 15.1, OneSignal 4.5.1).
Here is full error message:
Multiple commands ...
0
votes
1
answer
50
views
APK doesn't work well outside development server, React Native
I'm newbie using the React Native environment and I'm facing some difficulties to understand what is happening to my app when I test the debug-app.apk without any development server.
I mean, currently,...
2
votes
1
answer
2k
views
App (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks
I am getting error on running npx pod-install after integrating OneSignal into my React Native project:
App (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.
0
votes
1
answer
314
views
React Native OneSignal: For version 4.5.0, do we still need OneSignal Gradle Plugin?
I'm using OneSignal in my React Native project. I'm upgrading the packages, and I found the following code in android/app/build.gradle:
buildscript {
repositories {
maven { url 'https://...
0
votes
1
answer
571
views
How to check if push is currently disabled on OneSignal React Native SDK?
OneSignal has a OneSignal.disablePush(boolean) method to toggle push notifications globally in app. How can I read the current value of it so that I can sync it with the app state?
In other words, I'm ...
1
vote
0
answers
475
views
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 ...
4
votes
1
answer
1k
views
Onesignal Expo SDK Setup Google Android FCM Configuration, cannot read property 'smallIcons' of undefined at withSmallIcons (\withOneSignalAndroid.js)
I'm using Onesignal for push notifications but am stuck in an error and could not find the solution for many days.
OneSignal SDK Configuration:
I configured the Google Android (FCM) Configuration ...
1
vote
1
answer
4k
views
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 ...
2
votes
0
answers
1k
views
OneSignal notification does not appear on iOS, but it does on Android (In App message works perfectly on both)
So I added onesignal-expo-plugin and react-native-onesignal to my project, I made everything what was wrote on the website
After this i made a developmen-simulator build for my app
I tested the app ...
1
vote
0
answers
621
views
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....
1
vote
0
answers
337
views
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 ...
0
votes
1
answer
1k
views
react-native app successfully installs but won't open after updating react-native-onesignal
I'm making an application in react native and I need to update it to use version 31 of the Android SDK due to the requirements of the Google Play Store. I was using version 30.
When trying to update ...
1
vote
0
answers
645
views
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(&...
2
votes
2
answers
2k
views
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 ...
1
vote
1
answer
519
views
A secondary window unexpectedly pops up on clicking notification (via OneSignal) in iOS
Does anyone here have experience integrating push notifications on iOS on OneSignal with mobile apps built using Expo?
I have an app which opens a WebView and this WebView handles all the navigation (...
5
votes
1
answer
1k
views
React Native OneSignal Background Notification Issue in iOS
I followed this guide to setup the OneSignal background notification in My react native App: https://documentation.onesignal.com/docs/rn-android-native-module-setup-for-notification-service-extension#...
1
vote
0
answers
318
views
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 ...
2
votes
1
answer
591
views
Sending React Native Notification on database update?
I have an AWS Postgres database, an API layer, and a React Native application. One user is trying to communicate with another (and this will be stored in the db) I want to let the intended user know ...
2
votes
0
answers
2k
views
One Signal SDK Error with Expo+ReactNative
I'm trying to add the OneSignal SDK to my ReactNative project managed by Expo SDK, by following the guide here:
Expo One Signal
here is my plugin setup in App.js
export default function App() {
...
2
votes
1
answer
1k
views
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 ...
0
votes
0
answers
319
views
Android crashes when executing after installing oneSingal React-Native
In react native, after adding onesignal package I am getting this error. Can anybody help me about this issue??
Task :app:checkDebugAarMetadata FAILED
Deprecated Gradle features were used in this ...
1
vote
1
answer
589
views
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 ...
-1
votes
1
answer
64
views
how save data oneSignal react-native
how can i save my push history on my device? I'm developing on react-native, when the event is open, I can save only the last push, and I need to store everything on the device.
1
vote
1
answer
435
views
React Native Android app builds as RNOneSignalAndroid instead of my app
My app has the wrong app name and opens to the wrong activity, instead of my main activity it opens the OneSignal activity.
OneSignal is a service I'm using for notifications.
What can I do to use the ...
4
votes
1
answer
3k
views
(React Native) Error with npm run ios, build commands failed: PhaseScriptExecution
I have a very simple project, just a webview and one signal notifications, and when I try to run the app in the simulator, I get the following error:
The following build commands failed: ...
0
votes
4
answers
2k
views
How to get pushToken from react-native-onesignal?
1 year ago, I got pushToken successfully in my react-native app. But right now official website sample code was changed, so I couldn't find any code how to get pushToken.
This is the code I used last ...
0
votes
1
answer
782
views
Error notifications in React Native using Onesignal and Firebase
I'm developing an app in React Native and wanted to receive notifications in the app using Onesignal and Firebase, but I'm getting an error, I've already looked in the documentation and apparently it'...
3
votes
1
answer
780
views
RN OneSignal _open Event
OneSignal on notification open event fires after the home screen got launched then it navigates to the desired screen. I want to detect if the app was launched on pressing the notification prior the ...
1
vote
2
answers
2k
views
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....
8
votes
4
answers
4k
views
dyld: Library not loaded: @rpath/OneSignal.framework/OneSignal
Trying to integrate one signal in my react native app.
I followed all the instructions mentioned in the docs
https://documentation.onesignal.com/docs/react-native-sdk-setup.
The build for the app gets ...
0
votes
2
answers
452
views
How to add header in new Onesignal React-native
Error: {"errors": ["Please include a case-sensitive header of Authorization: Basic <YOUR-REST-API-KEY-HERE> with a valid REST API key."], "reference": ["https:/...
4
votes
0
answers
400
views
React Native: Can't sign Ad-hoc iOS OneSignal extension in AppCenter
I'm developing an app with React Native 0.64 that I build through Microsoft AppCenter. I'm using the react-native-one-signal sdk for the push notifications but I'm facing some issues when I'm trying ...