Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230092

Local Notifications (Capacitor/React): Do not trigger on iOS

$
0
0

Hey all,

I’m trying to implement Local Notifications on iOS. They do not seem to trigger at all.

React.useEffect(() => {
    LocalNotifications.schedule({
      notifications: [
        {
          title: "Test Title",
          body: "Test Body",
          id: id: Math.floor(Math.random() * 6000000),
          schedule: {
            at: new Date(Date.now() + 1000 * 5), // in 5 secs
            repeats: false
          }
        }
      ]
    });
    
  }, [])

Do you have any idea?

The console.log seems to be fine, no error messages.


Viewing all articles
Browse latest Browse all 230092

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>