From eda5e430bb698ecec97b3a3d105be00807c1e7fd Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Wed, 6 Sep 2017 16:03:11 -0400 Subject: [PATCH] :memo: Issue #1819: Android - app doesn't come to foreground when clicking notification --- docs/PAYLOAD.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/PAYLOAD.md b/docs/PAYLOAD.md index 56d064405..42ffb733a 100644 --- a/docs/PAYLOAD.md +++ b/docs/PAYLOAD.md @@ -24,6 +24,7 @@ - [Badges](#badges) - [Support for Twilio Notify](#support-for-twilio-notify) - [Notification ID](#notification-id) + - [Clicking Notification Does Not Bring App to Foreground](#clicking-notification-does-not-bring-app-to-foreground) - [iOS Behaviour](#ios-behaviour) - [Sound](#sound-1) - [Background Notifications](#background-notifications-1) @@ -1454,6 +1455,10 @@ When setting the notification ID or `notId` please make sure that you are not ex This means you can't use the JavaScript's `Date.getMilliseconds()` or Java's `System.currentTimeMillis()` as they will give you a value greater than MAX_INT. +## Clicking Notification Does Not Bring App to Foreground + +If you are running into a problem where you click on the notification but your app does not get brought to the foreground check the setting of `android:launchMode` in your AndroidManifest.xml. If something is setting it to be anything other than `singleTop` you should switch it back to `singleTop` which is required by Apache Cordova based apps. + # iOS Behaviour ## Sound