Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
📝 Issue #1819: Android - app doesn't come to foreground when clicking…
Browse files Browse the repository at this point in the history
… notification
  • Loading branch information
macdonst committed Sep 6, 2017
1 parent 7d22655 commit eda5e43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/PAYLOAD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit eda5e43

Please sign in to comment.