Baseflow / Baseflow/flutter-geolocator

notificationIcon

Open
#1,011 5 comments 8 reactions 0 assignees View on GitHub
P2 platform: android type: bug
Dominant language
Dart
Stars
1.3k
Forks
803
Avg merge
8h 16m
Merged PRs (30d)
1

Description

I can't change icon in notification.
`
foregroundNotificationConfig: ForegroundNotificationConfig(
notificationText:getMessage('location_check_text'),
notificationTitle: getMessage('location_check_title'),
notificationIcon: AndroidResource(name: 'ic_stat_onesignal_default'),
enableWakeLock: true,
)
`
I can't use AndroidResource.

Need change export
export 'src/types/foreground_settings.dart' show ForegroundNotificationConfig, AndroidResource;
or show please how can I change icon.

Contributor guide

Open the contributing guide

Research direction

Start by reading src/types/foreground_settings.dart and the export statement shown in the issue. Check how ForegroundNotificationConfig and AndroidResource are exposed, then verify that a user can configure the notification icon as shown; done means the requested API is usable or the supported configuration is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.