Local notification on simulator

Can’t receive Local notification on simulator althought i have follow official expo documentation and snack example .Notification are working fine on real android device but not on simulator .
_handleButtonPress = () => {
const localnotification = {
title: ‘Example Title!’,
body: ‘This is the body text of the local notification’,
android: {
sound: true,
},
ios: {
sound: true,
_displayInForeground:true
},
};
let sendAfterFiveSeconds = Date.now();
sendAfterFiveSeconds += 5000;

const schedulingOptions = { time: sendAfterFiveSeconds };
let id = Notifications.scheduleLocalNotificationAsync(
  localnotification,
  schedulingOptions
);

};

1 Like