fix: icons notification
This commit is contained in:
parent
ff805aa20f
commit
609c63ea97
|
@ -11,7 +11,7 @@
|
||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
android:label="FREHub"
|
android:label="FRE ACCESS HUB"
|
||||||
tools:replace="android:label"
|
tools:replace="android:label"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:requestLegacyExternalStorage="true"
|
android:requestLegacyExternalStorage="true"
|
||||||
|
@ -63,6 +63,10 @@
|
||||||
|
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<meta-data
|
||||||
|
android:name="com.google.firebase.messaging.default_notification_icon"
|
||||||
|
android:resource="@drawable/notification_icon" />
|
||||||
|
|
||||||
<!-- Don't delete the meta-data below.
|
<!-- Don't delete the meta-data below.
|
||||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||||
<meta-data
|
<meta-data
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 66 KiB |
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">FREHub</string>
|
<string name="app_name">FRE ACCESS HUB</string>
|
||||||
<string name="default_notification_channel_id">Miscellaneous</string>
|
<!--<string name="default_notification_channel_id">Miscellaneous</string>-->
|
||||||
</resources>
|
</resources>
|
|
@ -15,20 +15,21 @@ import 'package:hub/shared/utils/dialog_util.dart';
|
||||||
class NotificationService {
|
class NotificationService {
|
||||||
static Future<void> initialize() async {
|
static Future<void> initialize() async {
|
||||||
await AwesomeNotifications().initialize(
|
await AwesomeNotifications().initialize(
|
||||||
null,
|
'resource://drawable/notification_icon',
|
||||||
[
|
[
|
||||||
NotificationChannel(
|
NotificationChannel(
|
||||||
channelKey: 'basic_channel',
|
channelKey: 'basic_channel',
|
||||||
channelGroupKey: 'basic_channel',
|
channelGroupKey: 'basic_channel',
|
||||||
channelName: 'Basic notifications',
|
channelName: 'Notificações do App',
|
||||||
channelDescription: 'Notification channel for tests',
|
channelDescription: 'Canal de notificação do Aplicativo',
|
||||||
importance: NotificationImportance.Max,
|
importance: NotificationImportance.Max,
|
||||||
channelShowBadge: true,
|
channelShowBadge: true,
|
||||||
playSound: true,
|
playSound: true,
|
||||||
criticalAlerts: true,
|
criticalAlerts: true,
|
||||||
onlyAlertOnce: true,
|
onlyAlertOnce: true,
|
||||||
defaultColor: const Color(0xFF9D58D0),
|
defaultColor: Colors.green,
|
||||||
ledColor: Colors.white)
|
ledColor: Colors.white,
|
||||||
|
)
|
||||||
],
|
],
|
||||||
channelGroups: [
|
channelGroups: [
|
||||||
NotificationChannelGroup(
|
NotificationChannelGroup(
|
||||||
|
|
|
@ -96,7 +96,7 @@ class _AppState extends State<App> {
|
||||||
ChangeNotifierProvider(create: (_) => AppState()),
|
ChangeNotifierProvider(create: (_) => AppState()),
|
||||||
],
|
],
|
||||||
child: MaterialApp.router(
|
child: MaterialApp.router(
|
||||||
title: 'FREHub',
|
title: 'FRE ACCESS HUB',
|
||||||
builder: (context, widget) => ResponsiveBreakpoints.builder(
|
builder: (context, widget) => ResponsiveBreakpoints.builder(
|
||||||
child: BouncingScrollWrapper.builder(context, widget!),
|
child: BouncingScrollWrapper.builder(context, widget!),
|
||||||
breakpoints: [
|
breakpoints: [
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<!-- iOS meta tags & icons -->
|
<!-- iOS meta tags & icons -->
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||||||
<meta name="apple-mobile-web-app-title" content="FREHub">
|
<meta name="apple-mobile-web-app-title" content="FRE ACCESS HUB">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,15 +29,15 @@
|
||||||
<link rel="icon" type="image/png" href="favicon.png" />
|
<link rel="icon" type="image/png" href="favicon.png" />
|
||||||
|
|
||||||
<!-- Open Graph & SEO tags -->
|
<!-- Open Graph & SEO tags -->
|
||||||
<meta property="og:title" content="FREHub" />
|
<meta property="og:title" content="FRE ACCESS HUB" />
|
||||||
<meta property="og:description" content="Built with FlutterFlow." />
|
<meta property="og:description" content="Built with FlutterFlow." />
|
||||||
<meta property="og:image" content="https://storage.googleapis.com/flutterflow-prod-hosting/og_splash_gradient.png" />
|
<meta property="og:image" content="https://storage.googleapis.com/flutterflow-prod-hosting/og_splash_gradient.png" />
|
||||||
<meta name="twitter:title" content="FREHub" />
|
<meta name="twitter:title" content="FRE ACCESS HUB" />
|
||||||
<meta name="twitter:description" content="Built with FlutterFlow." />
|
<meta name="twitter:description" content="Built with FlutterFlow." />
|
||||||
<meta name="twitter:image" content="https://storage.googleapis.com/flutterflow-prod-hosting/og_splash_gradient.png" />
|
<meta name="twitter:image" content="https://storage.googleapis.com/flutterflow-prod-hosting/og_splash_gradient.png" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
|
||||||
<title> FREHub </title>
|
<title> FRE ACCESS HUB </title>
|
||||||
<meta name="description" content="Built with FlutterFlow." />
|
<meta name="description" content="Built with FlutterFlow." />
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue