onesignal

user to user push notifications

偶尔善良 提交于 2019-12-11 04:38:26
问题 I have seen many questions on here and online that address this topic, but they all are from a long time ago, and are possibly outdated. I wanted to get a more recent answer if Firebase has implemented anything recently that is capable of a user to user push notification system, essentially what is used in all chat applications, or if the best option is still currently using Onesignal. 回答1: Yes! These days, you can use Cloud Functions for Firebase to do things like send a notification when

ionic build getting error after installing OneSingle plugin

大城市里の小女人 提交于 2019-12-10 16:48:48
问题 After executing $ ionic cordova build android getting this error before adding OneSingle Plugin it was working fine but after add OneSingle plugin using $ ionic cordova plugin add onesignal-cordova-plugin $ npm install --save @ionic-native/onesignal It was getting bellow error Here is the console log UP-TO-DATE :app:preBuild UP-TO-DATE :app:preDebugBuild FAILED FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath

OneSignal Not calling didReceiveRemoteNotification

三世轮回 提交于 2019-12-10 09:25:13
问题 We migrated from UA to One Signal. We are sending push from cloud code like var pushInfo = { "app_id" : "xxxxxx", "data": { "objectId": objectId, "placeId": placeId, }, "included_segments": ["All Users"], "contents": {"en": message} }; var headers = { "Content-Type": "application/json; charset=utf-8", "Authorization": "Basic XXXXX" }; var options = { host: "onesignal.com", port: 443, path: "/api/v1/notifications", method: "POST", headers: headers, }; var https = require('https'); var req =

Gradle Build Error could not find supportlibrary

柔情痞子 提交于 2019-12-10 09:16:13
问题 I'm using support library version 27.0.0 I get this weird build error. The support library I use is 27.0.0 but it still throws error for 27.0.99 I've tried clean project, invalidating caches in Android studio, restarted my android Studio It did't help. If I updated my buildtoolversion and support libraries to 27.0.2 it still throws error for 27.0.99 Error:Could not find com.android.support:customtabs:27.0.99. Searched in the following locations: file:/Applications/Android Studio.app/Contents

OneSignal - cannot open activity after push clicked

浪子不回头ぞ 提交于 2019-12-10 04:21:17
问题 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 other activity. When i click push, Main activity opens and nothing happens I tried but cannot be succeed. How can i fix it public class MainActivity extends Activity { private DrawerLayout mDrawerLayout; private ListView mDrawerList; private

Bad Notification: Couldn't expand RemoteViews for: StatusBarNotification. on Android Nougat

混江龙づ霸主 提交于 2019-12-09 09:04:05
问题 I use OneSignal SDK to show notifications. I do it in OneSignalPushService.java . OneSignalPushService.java: public class OneSignalPushService extends NotificationExtenderService { @Override protected boolean onNotificationProcessing(OSNotificationReceivedResult notification) { if (!TinyDbWrap.getInstance().isPushEnabled()) { KLog.d(this.getClass().getSimpleName(), "Notification will not displayed"); return true; } OverrideSettings overrideSettings = new OverrideSettings(); overrideSettings

One Signal - idsAvailable is deprecated

时光怂恿深爱的人放手 提交于 2019-12-08 18:30:37
问题 OneSignal's latest build version generate a warning like ' idsAvailable ' is deprecated. How can I get 'playerID' using getPermissionSubscriptionState() instead idsAvailable as I did below? OneSignal.idsAvailable({ (userId, pushToken) in if (pushToken != nil) { if let playerID = userId { // do something } } }) 回答1: OneSignal keeps really good documentation. For android you can get userIDs by using the idsAvailable method which returns the userID and registrationID. userID aka playerID is a

OneSignal and Google gms incompatibility

主宰稳场 提交于 2019-12-08 08:10:14
问题 There is this error I get which you can see below. I found what causes the error is the incompatibility between the gms version in my project and the one used in Onesignal. I have checked every single solution proposed in these posts: https://github.com/OneSignal/OneSignal-Android-SDK/issues/286 https://stackoverflow.com/questions/43430401/android-nosuchmethoderror-no-static-method-zzyljava-lang-object/43430478#comment86259725_43430478 Couldn't add OneSignal's Gradle plugin as suggested by

Swift - How sending a post notification from OneSignal SDK to specific username tag?

余生长醉 提交于 2019-12-07 18:14:32
问题 How Can I send a post notification to specific tag like (username: "@john") from Swift/iOS Native SDK. I have sendTag OneSignal before. I'm sending below a user with playerID. But It's not enough. Someone can login with different accounts. So same playerID will be for all of them. When I add tag line it doesn't work as I expect. How to work Player ID && username tag together. OneSignal.sendTag("username", value: "\(username)") If someone explain this, It would be great. DataService.ds.REF

OneSignal-Pushnotification small icon not displayed on Android

半世苍凉 提交于 2019-12-07 15:04:27
问题 We have a Cordova-App which contains a file 'icon.png' in every drawable-xy folder. We provide push notifications using OneSignal. The notifications are working as expected. Except the small icon. There is only a blank icon on the top bar of my phone, where app-symbols are displayed. I tried using the following snippet: { ... "small_icon" : "@android:drawable/icon.png" .... } I also tried lots and lots of other variations without "android", without "drawable", without slash, with .png and