onesignal

User not being registered when using external ID/Can't set external ID

雨燕双飞 提交于 2021-02-11 12:26:11
问题 I'm trying to setup OneSignal for notifications on my site. I'd like to use external IDs to keep things simple between my site and OneSignal but I can't seem to get the user to register on OneSignal after accepting notifications. It sends to the server but it seems to fail with no info. If I try to read the response from setExternalUserId using then(function (e)) I get nothing, and if I try to directly output it I just get an object: Setting user playerID as ********* OneSignal's response is

User not being registered when using external ID/Can't set external ID

半城伤御伤魂 提交于 2021-02-11 12:25:05
问题 I'm trying to setup OneSignal for notifications on my site. I'd like to use external IDs to keep things simple between my site and OneSignal but I can't seem to get the user to register on OneSignal after accepting notifications. It sends to the server but it seems to fail with no info. If I try to read the response from setExternalUserId using then(function (e)) I get nothing, and if I try to directly output it I just get an object: Setting user playerID as ********* OneSignal's response is

OneSignal - Add user from API

♀尐吖头ヾ 提交于 2021-02-08 10:42:30
问题 I wanna add user to OneSignal with API for push-msg. Its possible ? If yes - how to ? thanks for answers my code return "No Push Token" and i dont't khow how to fix this problem <? $fields = array( 'app_id' => "", 'language' => "ru", 'timezone' => "-28800", 'device_type' => "5", ); $fields = json_encode($fields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/players"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt(

OneSignal - Add user from API

房东的猫 提交于 2021-02-08 10:42:20
问题 I wanna add user to OneSignal with API for push-msg. Its possible ? If yes - how to ? thanks for answers my code return "No Push Token" and i dont't khow how to fix this problem <? $fields = array( 'app_id' => "", 'language' => "ru", 'timezone' => "-28800", 'device_type' => "5", ); $fields = json_encode($fields); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/players"); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt(

Opening android application has delay after clicking on OneSignal notification in android 8

こ雲淡風輕ζ 提交于 2021-02-07 14:22:41
问题 I've added oneSignal library to my android project. Everything goes right except when i click on the received notification from one signal server. it takes about one or two minute to open my android app on my device, but emulator works fine. My device is Galaxy s7 with android 8 and emulator uses android 5. I guess my android version is the issue. maybe new features on android 8 does not allow app to open immediately. Any idea? 回答1: Finally, after a lot of searching, I found the cause.

Opening android application has delay after clicking on OneSignal notification in android 8

本秂侑毒 提交于 2021-02-07 14:21:10
问题 I've added oneSignal library to my android project. Everything goes right except when i click on the received notification from one signal server. it takes about one or two minute to open my android app on my device, but emulator works fine. My device is Galaxy s7 with android 8 and emulator uses android 5. I guess my android version is the issue. maybe new features on android 8 does not allow app to open immediately. Any idea? 回答1: Finally, after a lot of searching, I found the cause.

OneSignal: where should I use OneSignal account credentials vs my own credentials?

£可爱£侵袭症+ 提交于 2021-01-29 13:38:51
问题 I'm setting up OneSignal for my React Native app for iOS and Android. I have a OneSignal account, and my own Google account. There are several places in the setup process where I need to provide an email address, and I don't know whether to provide the email address of my OneSignal account or my own Google address. The two places are: 1) This link where I'm setting up my iOS push certificate, in the section where it says "Next, select the Save to disk option and enter your information in the

Cordova OneSignal Plugin won't getIds properly

▼魔方 西西 提交于 2021-01-28 22:59:02
问题 I got a small problem with the onesignal plugin for cordova. When I'm running the app for the first time on wifi it won't get user's ids if I switch on mobile data it works just fine, after this works on wifi too. This is the error i get on onesignal debugger: Index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app

Cordova OneSignal Plugin won't getIds properly

我的梦境 提交于 2021-01-28 22:31:24
问题 I got a small problem with the onesignal plugin for cordova. When I'm running the app for the first time on wifi it won't get user's ids if I switch on mobile data it works just fine, after this works on wifi too. This is the error i get on onesignal debugger: Index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app

sometimes One signal returns UserId as null

。_饼干妹妹 提交于 2020-12-09 16:36:41
问题 In my application i am sending notifications to the user through one signal.but sometimes one Signal returns null User Id...that time i am facing problem of sending notification to user.how can i resolve it. if anyone have solution, please share with me here is my code for generating user Id OneSignal.idsAvailable(new OneSignal.IdsAvailableHandler() { @Override public void idsAvailable(String userId, String registrationId) { Log.d("test","key is"+notification_key); notification_key=userId; }