Questions tagged [onesignal]

OneSignal is mobile and web push notification and SMS/email messaging service and API. Developers and marketers use OneSignal to deliver and track targeted transactional and promotional messages to their customers.

Official Resources:

1638 questions
8
votes
5 answers

android OneSignal import Error

hi i'm trying to use OneSignal in android and i'm following this tutorial to install the SDK in Android Studio. here i was able to compile the dependencies and sync the gradle file. but when i want to import com.onesignal.OneSignal; it says: Cannot…
Sina
  • 275
  • 5
  • 15
7
votes
1 answer

How to get OneSignal playerId (userId) in Flutter?

How to get playerId of a user inside the flutter app?. Player Id can be found in One signal website but i want that inside the flutter app and want to store it to send the notification to particular user.
Priyansh jain
  • 1,065
  • 10
  • 17
7
votes
2 answers

IllegalThreadStateException OneSignal crash workaround

Our app daily receives around 1k crashes based on bug mentioned on OneSignal's github issues. Bug explanation: Unfortunately, I can't reproduce this issue. All crashes come from Crashlytics reports. SDK version 3.12.4 Devices: 1) Samsung: Galaxy…
7
votes
1 answer

ERROR: Encountered error during push registration with OneSignal: Error Domain=OneSignalError Code=400 "

It have been a white I'm facing a issue while integrating one-signal to my app for iOS i followed every thing in the ionic guide and one-signal but getting this error ERROR: Encountered error during push registration with OneSignal: Error…
qasmaoui
  • 103
  • 1
  • 7
7
votes
2 answers

Onesignal Badge count increment is not working

In Onesignal api, I have added isIos => true,ios_badgeType => Increase,ios_badgeCount => 1,content_available => true in the field array. But the badge count always remains as 1, it's not increasing with multiple messages. This is my payload details…
P.Banerjee
  • 189
  • 2
  • 14
7
votes
1 answer

How to detect if push notifications are blocked on current website?

I am using OneSignal and want to be able to detect current subscribtion state between those three: user is blocking notifications not subscribed subscribed OneSignal API gives the isPushNotificationsEnabled function, but it only detects two…
I Hafid
  • 373
  • 2
  • 13
7
votes
4 answers

How do I prevent Alert when App is on Foreground with Incoming OneSignal Push Notification?

When my app is in the foreground, there is a alert that appears. How do I prevent this from appearing when receiving push notifications?
Tim Nuwin
  • 2,775
  • 2
  • 29
  • 63
7
votes
4 answers

Convert p12 APNS certificate to base64 string

I want to send the .p12 file of APNS certificate to One Signal API, but I need first to convert the .p12 file to base64 string. How do I do that? The API documentation is below: https://documentation.onesignal.com/reference#create-an-app
anestis
  • 931
  • 3
  • 9
  • 24
7
votes
1 answer

How to send one signal notification from asp.net webapi to ionic app

I'm developing android and iOS application using cordova ionic and I include one signal notification as a feature in my app. I register onesignal and test to push notification. It's work well. Now I want to send onesignal notification from asp.net…
vickstricks
  • 71
  • 1
  • 1
  • 2
7
votes
6 answers

How to read One Signal Push Notification Message in android?

I need to read One Signal's Push Notification information.Depends on that I need to change the delivery status of a product in my eCommerce app. How to read it?
Parama Sudha
  • 2,583
  • 3
  • 29
  • 48
7
votes
3 answers

OneSignal - cannot open activity after push clicked

I am trying that. I send some AdditionalData from push and redirect user to spesific activity but not redirect. For example i send a push contains AdditionalData like imageID and redirect user ImageDetail activity with passing imageID parameter to…
Erhan H.
  • 520
  • 4
  • 14
  • 24
6
votes
1 answer

Android received duplicate push notifications (onesignal)

I've integrated OneSignal sdk to my react-native project, everything seems to be working fine, except when we add a Title to the push message the android receives a double push notification. When we send the push notification without the title, the…
nika
  • 77
  • 2
  • 6
  • 20
6
votes
0 answers

React native full screen intent notification

I have an app that needs to show a full screen notification even when the phone is locked or the app is closed, something like ubber, when the user orders a driver i want the driver to be able to see a fullscreen notification that shows the details…
abdou-tech
  • 687
  • 1
  • 8
  • 16
6
votes
2 answers

Flutter oneSignal notifications icon not set

I'm using one signal within my flutter app and everything is fine except the notifications have no icon ( comes with a default bill icon ). I have read the documentation for one signal and generated an AssetsImage by Android Studio in…
hesham shawky
  • 1,073
  • 4
  • 21
  • 44
6
votes
1 answer

Open Flutter app from push notification , when it is killed

I am new to flutter and trying to implement push notification. I have used ONE SIGNAL for push notification Here i have initialized one signal and getting the playerId, which i send to the server. void oneSignalInit() async { …
Aayush Singh
  • 288
  • 2
  • 14