Questions tagged [react-native-onesignal]
62 questions
0
votes
0 answers
React-native one-signal just working at Android and not working at ios
So, at the oficial documentation there is this ios implementation, but I can't see logs ate the console.
https://documentation.onesignal.com/docs/react-native-sdk-setup
Step 5:
import OneSignal from 'react-native-onesignal';
// OneSignal…
0
votes
1 answer
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!.

spatak
- 1,039
- 1
- 14
- 25
0
votes
0 answers
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://plugins.gradle.org/m2/' } // Gradle Plugin Portal
…

gkeenley
- 6,088
- 8
- 54
- 129
0
votes
1 answer
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 looking for a method like…

Can Poyrazoğlu
- 33,241
- 48
- 191
- 389
0
votes
0 answers
How can React Native Expo application on Android receive OneSignal Background/Data notification?
This is my backend code
$fields = array(
'app_id' => "XXX",
'include_player_ids' => $player_id_arr,
'data' => array("type" => $type, "data" => $data),
'content_available' => true,
'ios_sound' =>…

Mher
- 985
- 9
- 23
0
votes
0 answers
Convert OneSignal code from react-native to reactjs
In react-native project. It has code paragraph:
import OneSignal from 'react-native-onesignal'
import { REGEX } from '@/Constants/Regex'
const getPushToken = async () => {
const state = await OneSignal.getDeviceState()
let identifier =…

LXT
- 726
- 1
- 7
- 18
0
votes
0 answers
OneSignal audience Not Subscribed even if they are active users
I'm trying to implement push notifications feature within my react native Expo app. I'm trying to do so by integrating Onesignal with Firebase. I followed this documentation:
"https://documentation.onesignal.com/docs/react-native-expo-sdk-setup"
I…

Nadhir Hajji
- 3
- 2
0
votes
1 answer
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 android/build.gradle (below) with sdk 31 and build…
0
votes
0 answers
Why setSubscription method from OneSignal doesn't work in react native?
I use "react-native-onesignal": "^3.4.2" in my old project and I noticed when I call such method OneSignal.getPermissionSubscriptionState it returns an object with different values and one of them is notificationsEnabled which is responsible for…

wefwe fwefwef
- 17
- 4
0
votes
0 answers
Is it possible to use different one-signal notification configs for different builts I take with react-native-config?
Well I want to get different flavors/builds by using react-native-config
For example lets suppose I have 3 different entity types, how am I going to make configurations for those entities on one-signal ?
Same question can be asked for firebase…

ihsnktmr
- 198
- 1
- 11
0
votes
0 answers
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 build, making it incompatible with Gradle 7.0.
Use…

jhintstone
- 83
- 5
0
votes
1 answer
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 MainActivity…

Dorian
- 7,749
- 4
- 38
- 57
0
votes
2 answers
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 year. (Class component)
constructor(props) {
…

SatelBill
- 641
- 2
- 12
- 28
0
votes
1 answer
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's correct to use.
follows the error code:
…

tharles cunha
- 1
- 1
0
votes
2 answers
How to add header in new Onesignal React-native
Error: {"errors": ["Please include a case-sensitive header of Authorization: Basic with a valid REST API key."], "reference": ["https://documentation.onesignal.com/docs/accounts-and-keys#section-keys-ids"]}
I tried as…

JASIM TK
- 89
- 4