Local Notification is not working on background
See original GitHub issueMy code is shown below
PushNotification.configure({
onNotification: (notification) => {
Actions.notifications();
},
popInitialNotification: true,
requestPermissions: true,
});
componentDidMount() {
if (Platform.OS === 'android') {
setTimeout(() => {
PushNotification.localNotification({
title: 'Something happened',
message: 'Notification Message',
foreground: false,
userInteraction: true,
});
}, 5000);
}
}
Platform : Android RN : 0.46.4 RN Notification: 3.0.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:12
Top Results From Across the Web
Local Notification not working in Background Mode
When app is in background, notifications wont show. After investigating this issue i found that they work fine when app is running in...
Read more >Flutter Local Notification not working in background?
I am using flutter local notification to display schedule notification in my app. But unfortunately it is not working when app is in ......
Read more >awesome_notifications | Flutter Package - Pub.dev
A complete solution to create Local and Push Notifications, customizing buttons, images, sounds, emoticons and applying many different layouts for Flutter ...
Read more >Quick guide on local notifications for iOS - tanaschita.com
When the app is running in the foreground, the notification will not be shown to the user by default. To show the notification...
Read more >Background fetch for local notifications : r/iOSProgramming
The only solutions that comes to mind would be to abuse background fetches and use that time to schedule local notifications or use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bwoodlt it looks like that you did not follow my instruction do not put it inside a react native lifecycle method your main component code supposed to be like this
Bang @sitompul ada tutorialnya ga, baru di RN nih… butuh notif pas lagi ga dibuka appnya