4

I am creating a simple timer app which will have a lot of focus on the today extension widget features. Users can start the timer from here by tapping.

The only problem is that I need to set a local notification from the widget. I have tried to use [[UIApplicaton sharedApplication] scheduleLocalNotification] but Xcode throws an error saying that shared application is unavailable in app extension. Is there any solution for setting a local notification from Today extension? Thanks in advance. Any help whatsoever is appreciated.

Kampai
  • 22,848
  • 21
  • 95
  • 95
dev_cd123
  • 273
  • 1
  • 4
  • 12

0 Answers0