zetavg / react-native-system-notification

Android system notifications for React Native. Supports push notifications with GCM integrated.
https://www.npmjs.com/package/react-native-system-notification
244 stars 102 forks source link

Removed need for deprecated GET_TASKS permission #65

Open dwb opened 7 years ago

dwb commented 7 years ago

Rewritten notification-click intent handling so that we don't need to check whether app is running or not. Instead, it sends the intent such that it can get an 'OK' response back if the app is running; if not, it'll start the app.

getRunningTasks was deprecated in Lollipop, as was the whole GET_TASKS permission.

This is the first significant Android code I've written, so apologies if it's not quite right – but it's been working for us in low-volume testing recently.