onesignal

OneSignal - cannot open activity after push clicked

放肆的年华 提交于 2019-12-05 04:31:16
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 ActionBarDrawerToggle mDrawerToggle; // nav drawer title private CharSequence mDrawerTitle; // used to store

OneSignal get User Id from android

孤人 提交于 2019-12-05 03:53:18
问题 I am trying to implement OneSignal Android sdk. Everything is OK excepts get userId In OneSignal Documentation, here has the documentation. the steps are: defaultConfig { applicationId "com.nuspay.onesignaldemo" manifestPlaceholders = [manifestApplicationId: "${applicationId}", onesignal_app_id: "OPEN_SIGNAL_ID", onesignal_google_project_number: "GOOGLE_PLAY_PROJECT_NUMBER"] minSdkVersion 17 targetSdkVersion 23 versionCode 1 versionName "1.0" } And add this gradle file as dependencies:

android, unity, onesignal — where to place the sound file?

青春壹個敷衍的年華 提交于 2019-12-04 21:43:07
Saying that I'm new to android development would be an understatement. I'm trying to figure out where to place a sound file in my unity directory such that onesignal, a third party notification server, can access it for this a particular api method: android_sound: StringOptional Sound file that is included in your app to play instead of the default device notification sound. NOTE: Leave off file extension for Android. Example: "notification" reference: https://documentation.onesignal.com/reference#create-notification I get a build error when I place it in res/raw, and anywhere else in the

react-native-onesignal receive push notification without opening notification

淺唱寂寞╮ 提交于 2019-12-04 10:57:41
I have checked react-native-onesignal github README and it seems the only way to get the notification is to open which is through the onNotificationOpened() callback. Their documentation stated that: When any notification is opened or received the callback onNotification is called passing an object with the notification data. But onNotification clearly does not work. Is there any way to get the notification without opening the push notification or enabling the in-app alert notification? The onNotification function will only be called when opening a notification or when one is received while

Failed resolving dependencies due to OneSignal

一个人想着一个人 提交于 2019-12-04 06:50:42
问题 I found the following question: Failed to resolve: com.android.support:customtabs:[26.0.0,26.1.0] People marked it as duplicate (which is wrong ! see next sentence) or wrote something about Maven or cleaning project etc. I have exactly the same problem for two days (failed to resolve customtabs and support-v4) and I did not change anything in my project which has been previously working. So I started looking for possible solutions and I found the problem - it is the OneSignal dependency -

OneSignal get User Id from android

我们两清 提交于 2019-12-03 21:02:14
I am trying to implement OneSignal Android sdk. Everything is OK excepts get userId In OneSignal Documentation, here has the documentation. the steps are: defaultConfig { applicationId "com.nuspay.onesignaldemo" manifestPlaceholders = [manifestApplicationId: "${applicationId}", onesignal_app_id: "OPEN_SIGNAL_ID", onesignal_google_project_number: "GOOGLE_PLAY_PROJECT_NUMBER"] minSdkVersion 17 targetSdkVersion 23 versionCode 1 versionName "1.0" } And add this gradle file as dependencies: compile 'com.onesignal:OneSignal:2.+@aar' compile 'com.google.android.gms:play-services-gcm:+' compile 'com

Push Notifications take too long to arrive

微笑、不失礼 提交于 2019-12-03 17:09:03
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 can take up to 15 minutes for the messages to arrive at the device after they are sent. This is critical for my app (a taxi booking app), since i'm relying on the push notifications for the communication between the taxi app and the users app. So, for example, if a user requests a taxi, it can take up to 15 minutes for the taxi app to be notified.

Tapping a Notification from OneSignal does not open a result activity!!!! - Android

本小妞迷上赌 提交于 2019-12-03 16:56:17
Now I know there are lot of questions on this, but I have faced no luck at all and thought to ask a question here. I have an application which just runs a splashscreen followed by a MainActivity(Which is just a WebView) Now I integrated this with OneSignal for receiving push notifications. Everything works good, I mean I get a notification when sent through the onesignal website to my phone - but the thing I am facing is, tapping the notification does not get my ResultActivity(Just a activity displaying a Toast of message). My code snippets looks as below: splashscreen.java: public class

How to get One Signal unique user id in Mobile?

白昼怎懂夜的黑 提交于 2019-12-03 10:46:04
问题 I am developing a restaurant app. I am using One Signal in my app to send notifications. Here while I place the order I need to send the unique Id of the one signal for a specific user for getting notification of "Your Order is placed successfully... It is in Progress.Please wait". For that I need the user's One Signal user id. How can I get it? I am newbie to One Signal. Please help me. 回答1: Got the unique Id of OneSignal by using the following code which is in official site of OneSignal.

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

扶醉桌前 提交于 2019-12-03 10:43:39
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.extender = new NotificationCompat.Extender() { @Override public NotificationCompat.Builder extend