File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed
packages/apis/notification_api Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 37
37
</intent-filter >
38
38
</activity >
39
39
40
- <receiver android : name =" com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" >
40
+ <receiver
41
+ android : name =" com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver"
42
+ android : exported =" false" />
43
+ <receiver
44
+ android : name =" com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver"
45
+ android : exported =" false" >
41
46
<intent-filter >
42
47
<action android : name =" android.intent.action.BOOT_COMPLETED" />
43
48
<action android : name =" android.intent.action.MY_PACKAGE_REPLACED" />
50
55
android : name =" flutterEmbedding"
51
56
android : value =" 2" />
52
57
53
- <service
54
- android : name =" com.dexterous.flutterlocalnotifications.ForegroundService"
55
- android : exported =" true"
56
- android : stopWithTask =" false" />
57
-
58
58
</application >
59
59
<queries >
60
60
<intent >
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ Future<void> main() async {
22
22
Future <void > _initLocalNotification () async {
23
23
FlutterLocalNotificationsPlugin localNotificationsPlugin =
24
24
FlutterLocalNotificationsPlugin ();
25
+ localNotificationsPlugin
26
+ .resolvePlatformSpecificImplementation<
27
+ AndroidFlutterLocalNotificationsPlugin > ()
28
+ ? .requestNotificationsPermission ();
29
+
25
30
AndroidInitializationSettings androidInitializationSettings =
26
31
const AndroidInitializationSettings ("mipmap/ic_launcher" );
27
32
DarwinInitializationSettings iosInitializationSettings =
@@ -30,6 +35,7 @@ Future<void> _initLocalNotification() async {
30
35
requestBadgePermission: false ,
31
36
requestSoundPermission: false ,
32
37
);
38
+
33
39
InitializationSettings initializationSettings = InitializationSettings (
34
40
android: androidInitializationSettings, iOS: iosInitializationSettings);
35
41
await localNotificationsPlugin.initialize (initializationSettings);
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ environment:
7
7
sdk : ' >=3.3.1 <4.0.0'
8
8
9
9
dependencies :
10
- flutter_local_notifications : ^13.0.0
10
+ flutter_local_notifications : ^17.2.3
11
11
timezone : ^0.9.1
12
12
13
13
dev_dependencies :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: For solving problems in the world of programming; base on solved.ac
3
3
4
4
publish_to : " none" # Remove this line if you wish to publish to pub.dev
5
5
6
- version : 2.2.0+79
6
+ version : 2.2.0+80
7
7
8
8
environment :
9
9
sdk : " >=2.18.2 <3.0.0"
@@ -17,7 +17,7 @@ dependencies:
17
17
extended_image : ^8.1.0
18
18
fluttertoast : ^8.2.8
19
19
flutter_bloc : ^8.1.3
20
- flutter_local_notifications : ^13.0.0
20
+ flutter_local_notifications : ^17.2.3
21
21
flutter_native_timezone : ^2.0.0
22
22
flutter_radar_chart : ^0.2.1
23
23
pie_chart : ^5.4.0
You can’t perform that action at this time.
0 commit comments