Questions tagged [react-native-onesignal]

62 questions
8
votes
2 answers

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 succeeded but I get an error while attaching the…
sakshya73
  • 5,570
  • 5
  • 22
  • 41
8
votes
4 answers

Android App crashes on OneSignal push notification

I developed a React Native app that crashes every time a push notification from OneSignal is received while the app is active. The error is java.lang.NoSuchMethodError: No static method zzc. If I receive the notification when the app is on…
Arnaud
  • 4,884
  • 17
  • 54
  • 85
5
votes
1 answer

React Native OneSignal Background Notification Issue in iOS

I followed this guide to setup the OneSignal background notification in My react native App:…
5
votes
0 answers

Queue navigation until screen is mounted and then navigate

I am trying to navigate to a certain screen on my bottom-tab-navigator when a user opens the app by clicking a notification. Looking into the official docs Navigating without the navigation prop, my setup of my main navigator is as follows: import…
4
votes
1 answer

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 with Firebase Server Key and Firebase Sender ID at…
4
votes
1 answer

(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: PhaseScriptExecution [CP-User]\ Generate\ Specs…
4
votes
0 answers

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 to sign my OneSignalExtension with the…
4
votes
0 answers

Redux saga: how to put a `yield put()` inside an event listener?

I'm using Redux saga and OneSignal in my React Native app. In my saga I have the following generator function: function* getOneSignalIDs() { try { OneSignal.init(appID) OneSignal.addEventListener('ids', (device) => { …
3
votes
1 answer

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 home screen get rendered so I can navigate to the…
3
votes
0 answers

React Native: How to make interactive push notifications?

On iOS, you can reply to text messages right from the push notification without opening the app. I want to do something similar in React Native, to have the user interact with a custom UI in a push notification without opening the app. At the moment…
3
votes
1 answer

React Native - How to show notifications of my website using WebView in React Native app (for Android)

I am using OneSignal to send notifications to my website, I want to show notifications using WebView in React Native. (For Android) I could not find any solution. What do I need to do for that?
2
votes
0 answers

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 on IOS and on Android too, on android i get the…
2
votes
1 answer

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 (i.e. no app routes, instead web routes). The…
2
votes
1 answer

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 that a message awaits them with a notification.…
2
votes
0 answers

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() { useEffect(() => { ///Other things …
Giulio Serra
  • 253
  • 1
  • 6
  • 15
1
2 3 4 5