Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
347 views
in Technique[技术] by (71.8m points)

reactjs - How to autohide LocalNotification after interval in Capacitor?

I have tried this code but getting error in timeoutAfter method as it is not recognized.

LocalNotifications.schedule({
      notifications: [
        {
          title: "Incoming Call",
          body: bodyValue,
          id: idValue,
          timeoutAfter: 3000
        },
      ],
    });

Although timeoutAfter method is available in Cordova plugin but not in Capacitor.

question from:https://stackoverflow.com/questions/65914102/how-to-autohide-localnotification-after-interval-in-capacitor

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...