vikeri / react-native-background-job

Schedule background jobs in React Native that run your JavaScript when your app is in the background/killed.
MIT License
747 stars 109 forks source link

Is there anyway to display dynamic content in the notification? #44

Open malithjkmt opened 7 years ago

malithjkmt commented 7 years ago

With the alwaysRunning set to true, I can show a notification when the App goes background. It works well for static notificationTitle and notificationText. In my case (GPS tracking app), I need to display some data from the App in the notification. For an example, Distance traveled: x km

vikeri commented 7 years ago

Can you try setting the notification again? This is not something I've explored so it may or may not be doable.