React-native-onesignal: Missing close button on some Android phones

Created on 18 Aug 2017  ·  3Comments  ·  Source: OneSignal/react-native-onesignal

On certain Android devices, the push notification dialog does not show the default "close" action button, thus requiring the user to use the OS back button to close the dialog. This is observed on notifications sent using both the web console and REST API.

We are using react-native-onesignal v3.0.3, and our (limited) set of devices where the button does not show up include:

  • HUAWEI P9 lite, Android 7.0
  • Sony Xperia SO-02F, Android 4.4.2

Most helpful comment

Experiencing the same issue, since I did a build this morning.
Here is an image demonstrating it:

screenshot aug 18 2017 22-47-13

Device is Infinix X555, Android 7.0

Edit: It looks like it is introduced by version 3.6.0 of the onesignal android sdk. As a temporary fix, you can force the sdk version to 3.5.8, in android/app/build.gradle file, under the dependencies:

compile (project(':react-native-onesignal')){
  exclude group: 'com.onesignal', module: 'OneSignal'
}
compile 'com.onesignal:OneSignal:3.5.8@aar'

All 3 comments

Experiencing the same issue, since I did a build this morning.
Here is an image demonstrating it:

screenshot aug 18 2017 22-47-13

Device is Infinix X555, Android 7.0

Edit: It looks like it is introduced by version 3.6.0 of the onesignal android sdk. As a temporary fix, you can force the sdk version to 3.5.8, in android/app/build.gradle file, under the dependencies:

compile (project(':react-native-onesignal')){
  exclude group: 'com.onesignal', module: 'OneSignal'
}
compile 'com.onesignal:OneSignal:3.5.8@aar'

I'm not sure how to handle this. @jkasten2 @Nightsd01

@rfmejia This was fixed in the 3.6.2 OneSignal Android SDK. Sorry for the delayed response!

Was this page helpful?
0 / 5 - 0 ratings