Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The method 'IOSInitializationSettings' isn't defined using local notification plugin

flutter_local_notifications: ^11.0.0

I used this library but I can find IOSInitializationSettings please help me. I m trying to integrate push notifications into my flutter app.

like image 778
Mohammad Faizan Avatar asked Sep 05 '25 09:09

Mohammad Faizan


1 Answers

From the flutter_local_notifications docs, version 10.0 has the following breaking changes:

iOS and macOS classes have been renamed and refactored as they are based on the same operating system and share the same notification APIs. Rather than having a prefix of either IOS or MacOS, these are now replaced by classes with a Darwin prefix. For example, IOSInitializationSettings can be replaced with DarwinInitializationSettings

So change: IOSInitializationSettings --> DarwinInitializationSettings

IOSNotificationDetails --> DarwinNotificationDetails

like image 172
Anthony Anisimov Avatar answered Sep 08 '25 12:09

Anthony Anisimov