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
6
votes
2 answers

2 iOS app with different with bundle identifier in 1 onesignal app

We are working on the On-demand Photography app. So basically we have. 2 android apps (user and photographer) 2 iOS apps (user and photographer) android push configured with firebase and firebase allows us to configure 2 android apps against one…
6
votes
0 answers

Setting Pending Intent to Builder in Onesignal NotificationExtenderService doesn't get Detected

I want to call Webview_activity on Notification Tap when app is killed , so in NotificationExtender Service ive attached Pending intent with the builder using setContentIntent() method, but nothing happens when notification is…
Karan Gada
  • 65
  • 7
6
votes
3 answers

How to disable OneSignal on android?

I want to use OneSignal on my app to send notifications to my users, and it is well documented and good, you should just act like this: https://documentation.onesignal.com/docs/android-sdk-setup OneSignal.startInit(this) …
Ali Molaei
  • 396
  • 2
  • 13
6
votes
2 answers

ionic 1 onesignal is there a way to know if there is a push notification when open app from background to foreground or launching app

I have an ionic app made with ionic1 and using OneSignal for push notification. Currently, one signal works well for push notification when: - app is already open - app is in background or kill, clicking on the push notification using these 2…
Axil
  • 3,606
  • 10
  • 62
  • 136
6
votes
2 answers

Disable One Signal Push Notification when app is in foreground ios 10 swift

I had disable infocus, autoprompt, launch url and app alert in onesignal launch options, but still banner is displayed when app is in foreground, is am a missing something or i had written something extra, here is my code, please review below code…
Patel Jigar
  • 2,141
  • 1
  • 23
  • 30
6
votes
3 answers

OneSignal - Creating Segments

I want to create Segments in oneSignal with out having to access the dashboard so I was wondering if they have an API for that for or any other way to it with me to do it
Nouf
  • 733
  • 1
  • 11
  • 32
6
votes
2 answers

Mismatched User Environment (Sandbox) OneSignal Cordova

I want send a notification by OneSignal, I follow all steps in the document but always I show this message 'Apple returned a BadDeviceToken error. Some users are tied to a different environment from your sending environment.' Any idea!! (Production…
6
votes
2 answers

How to unsubscribe to OneSignal Programmatically in android studio

I have made a news app that send the users oneSignal notification and works fine ,but i have a problem with making the user controlling whether receiving the notification or not but i can't find how to make unsubscribe to OneSignal Programmatically…
hassan emad
  • 73
  • 1
  • 7
6
votes
2 answers

OneSignal Push Notification Click to open activity

I have integrated one signal library for push notification. I want to open a particular activity from click of push notification while app is not running I am receiving push notification but while I am clicking on notification the app crashes. Here…
Krunal Prajapati
  • 211
  • 2
  • 3
  • 15
6
votes
2 answers

Get player_id from OneSignal on page load

I am implementing web push notifications using Onesigal API. $fields = array( 'app_id' => "07aae1f0-xxxx-xxxx-aa7a-21c79c5b6733", 'include_player_ids'=>['57dd3f80-xxxx-xxxx-adb0-294bfa69621a'], 'contents' => array( "en"=>…
Vinay
  • 7,442
  • 6
  • 25
  • 48
6
votes
2 answers

OneSignal subscribe user through web page using web-push-sdk

Is there a way in one signal web-push-sdk to add user manually and unsubscribe? I tried this in my subscribeOneSignal() function but nothing happening. OneSignal.push(function() { OneSignal.registerForPushNotifications(); }); I have simple html…
Muhammad Shahzad
  • 9,340
  • 21
  • 86
  • 130
6
votes
2 answers

React Native fetch "unsupported BodyInit type"

I'm trying to send a POST request to the OneSignal REST API using fetch: var obj = { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ 'app_id': '(API KEY)', …
user2672053
  • 133
  • 3
  • 8
6
votes
1 answer

How can I send notification from user to user on onesignal?

I use OneSignal to send notification from server and users to users. In my app,users can send notification to eachother. it is possible with send tag? if so how can i do that? I do not want to use user ids. (How can find each user ids from another…
CompEng
  • 7,161
  • 16
  • 68
  • 122
6
votes
2 answers

OneSignal Push Notifications Segmenting users

I have created an app in OneSignal.com . Now I need to segment users but i dont know how to do that using android using onesignal as i am new to android. So How do I segment users in Android OneSignal so that to send push notifications to specific…
ViPa
  • 71
  • 1
  • 4
6
votes
4 answers

Push Notifications take too long to arrive

I'm having a weird problem with push notifications in an adobe air app for iOS and Android. I'm using the Easy Push ANE from Milkman Games along with the One Signal service. The problem is that notifications do arrive, but sometimes (randomly), it…
BernalCarlos
  • 936
  • 3
  • 12
  • 25