0

I've recently updated to the latest version of the bms-push cordova plugin.

Seems like when we now receive a notification on an Android device, tapping on the notification does not launch the app anymore.

Is it the expected behaviour?

joe
  • 2,468
  • 2
  • 12
  • 19
Johan Mereaux
  • 143
  • 11

1 Answers1

0

You will need to make a change in the native Android's manifest:

<activity android:name="com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushNotificationHandler" android:theme="@android:style/Theme.NoDisplay"/>
joe
  • 2,468
  • 2
  • 12
  • 19
  • Thanks for the answer Joe. It does not exactly work as I would have expected. Indeed, when the app is in the background and a push is received, clicking on the notification restarts the app. It does not bring it out from its background state as it was the case before. – Johan Mereaux Dec 13 '16 at 08:48
  • I've been able to recreate and currently in discussion with the development team. – joe Dec 14 '16 at 19:59
  • Any progress on this? – Johan Mereaux Apr 10 '17 at 15:10
  • 1
    Seems like adding `android:launchMode="singleInstance"` to the main activity does the trick, but I would really appreciate a feedback from the dev team – Johan Mereaux Apr 10 '17 at 16:04
  • Hi @JohanMereaux, I will ask them to see if they have any updates. It's good to see you found a solution though. – joe Apr 10 '17 at 16:35
  • Hi @JohanMereaux, they recommended the following: "In the Android manifest file locate `android:launchMode="singleTop"` and replace it with `android:launchMode="singleTask"`" – joe Apr 11 '17 at 16:10