notifications 相关问题

通知是显示的用户界面元素,表示发生了事件。

WinUI 3 中的持久通知

我目前正在开发一个仅在 Windows 11 计算机上运行的 WinUI 3 程序,并且我已经实现了发送桌面通知,如下所示: 内部静态 bool SendNotification(st...

回答 1 投票 0

如何使用flask向客户端发送桌面通知

这是 winotify 包的代码: 从 winotify 导入通知、音频 toast=通知(app_id="文本分类", title="通知&q...

回答 1 投票 0

IICS 通知任务中的分发列表

我们可以在 IICS 的通知任务中添加通讯组列表吗?我尝试了以下方法,但它没有向 DL 发送任何电子邮件。 您能否建议是否有任何替代方案。 注意:...

回答 1 投票 0

本地通知既不显示在模拟器中,也不显示我的物理 Android 手机

我在网上搜索了一个使用 Flutter SDK 在 Android 中生成本地通知的简单教程/示例,我能找到的最简单的一个是这样的: 主要功能代码(实际上只是一个

回答 1 投票 0

向用户发送大量通知 - Laravel

我想在 Laravel 中发送大量通知。 通知方法是 firebase ,我使用 kutia-software-company/larafirebase 包作为通知。 目前,我大约有10000...

回答 1 投票 0

如何在 flutter 中创建通知以推送用户在 Playstore 上更新应用程序

我用flutter创建了一个应用程序,并将其推送到ios。 我想知道每次我在应用商店发布每个版本时如何通知用户。 例如,目前当前版本是1.0.0, 如何

回答 1 投票 0

Mac OS plist 创建触发通知

目前我正在尝试使用 launchagent plist 文件和 macOS 提供的各种其他机制在我的 Mac 上设置一些自动化。 我如何以编程方式创建 plist 文件: 导入 plistlib...

回答 1 投票 0

使用 Cordova 12 的 Android 本地通知

我有一个使用 Cordova 开发的应用程序,并使用 Katzer 的 cordova-plugin-local-notification 插件。 当我将其升级到 Cordova 12 时(为了能够定位发布该版本所需的 sdk)...

回答 1 投票 0

flutter_local_notifications 插件未在通知中显示大图像

我需要发出这样的通知 我的输出代码 我的 Pubspec.yaml 文件。我正在使用最新版本的 flutter_local_notifications flutter_local_notifications:^9.2.0 这是我的通知

回答 4 投票 0

应用程序关闭时无法使用 PHP 发送 FCM 通知

我正在使用以下 php 代码通过 Firebase 发送推送通知。 如果应用程序打开,我已成功收到 Android 应用程序的通知,但如果应用程序关闭,则无法

回答 2 投票 0

来电通知没有铃声或振动

创建通知通道的方法 私人乐趣createChannel(notificationManager:NotificationManager){ val uri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_RINGTONE) ...

回答 2 投票 0

Android - 已有待处理的垂直同步事件

我有三项服务。 早上通知、晚餐通知、晚上通知 我有这段代码来初始化它们: Morning_notification = 新 Intent(); Morning_notification.setClass(这个,

回答 1 投票 0

世博会推送令牌不适用于独立应用程序

当我在 expo go 应用程序上运行应用程序并且它收到 ExpoPushToken 时,Expo 通知库正在工作,但是当我使用 eas build -p android 构建应用程序时,它不起作用。我已经放了一个

回答 1 投票 0

通知请求未显示问题

我正在开发一个Web应用程序(.NET Framework 4.8)。用户应该填写一个表单,然后单击“添加”按钮后,所有设备上都会弹出一个通知,其中通知是

回答 1 投票 0

当flutter android应用程序处于终止状态时,单击通知会调用哪个函数,后台通知单击FCM

我正在使用 flutter_local_notifications: ^15.1.0+1 使用 FCM 显示通知。 我能够处理前台点击和后台点击的通知点击,但我找不到一个函数

回答 1 投票 0

如何编写从pendingIntent.getActivity中获取额外内容的BroadcastReceiver

我有一个带有操作按钮的通知。如果单击该操作,它将在我的应用程序中打开一个特定视图,并且通知将自行消失。我知道要取消通知...

回答 1 投票 0

关闭 BitBucket 上通知的自动订阅

每次我在我们公司的 BitBucket 服务器上批准任何拉取请求时,它都会自动向我订阅该拉取请求的通知,然后向我发送有关已完成操作的电子邮件。是

回答 2 投票 0

如何防止打开另一个通知时通知从通知中心消失? iOS

我正在开发一个接收推送通知的应用程序。此推送通知中,每一条都包含用户打开应用程序时显示的有价值的信息。 我的问题是我...

回答 3 投票 0

点击通知颤动后执行操作?

您好,我正在尝试使用 flutter_local_notifications 单击通知后导航到第二个屏幕 https://pub.dev/packages/flutter_local_notifications 最终行为主体 您好,我正在尝试使用 flutter_local_notifications 单击通知后导航到第二个屏幕 https://pub.dev/packages/flutter_local_notifications final BehaviorSubject<String?> selectNotificationSubject = BehaviorSubject<String?>(); final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin(); void initializeNotifcations() async { var initialzationSettings = InitializationSettings(android: initializationSettingsAndroid); await flutterLocalNotificationsPlugin.initialize(initialzationSettings, onDidReceiveBackgroundNotificationResponse: (NotificationResponse notificationResponse) { selectNotificationSubject.add(notificationResponse.payload); }); flutterLocalNotificationsPlugin .resolvePlatformSpecificImplementation< AndroidFlutterLocalNotificationsPlugin>()! .requestPermission(); } void configureDidReceiveLocalNotificationSubject() { print('test01'); selectNotificationSubject.stream.listen((String? payload) async { print('test02'); }); } 不听直播,如果您有一个如何使用最佳实践进行制作的示例,它将有所帮助 void main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); await initNotification(); FirebaseMessaging.onBackgroundMessage(_firebaseMessagingBackgroundHandler; ... } Future initNotification() async { var initializationSettingsAndroid = new AndroidInitializationSettings("@drawable/kin_removebg"); var initializationSettingsIOS = new IOSInitializationSettings( requestAlertPermission: false, requestBadgePermission: false, requestSoundPermission: false, onDidReceiveLocalNotification: (int? id, String? title, String? body, String? payload) async {}); var initializationSettings = new InitializationSettings( android: initializationSettingsAndroid, iOS: initializationSettingsIOS); final NotificationAppLaunchDetails? notificationAppLaunchDetails = await flutterLocalNotificationsPlugin.getNotificationAppLaunchDetails(); final didNotificationLaunchApp = notificationAppLaunchDetails?.didNotificationLaunchApp ?? false; if (didNotificationLaunchApp) { var payload = notificationAppLaunchDetails!.payload; onSelectNotification(payload); } else { await flutterLocalNotificationsPlugin.initialize( initializationSettings, onDidReceiveNotificationResponse:onSelectNotification, onDidReceiveBackgroundNotificationResponse: onSelectNotification, } } onSelectNotification(NotificationResponse notificationResponse) async { var payloadData = jsonDecode(notificationResponse.payload); print("payload $payload"); if(payloadData["type"]=="something" && payloadData["id"]!="something"){ Navigator.of(navigatorKey.currentContext!).push( MaterialPageRoute( builder: (context) => SomethingScreen(id: payloadData["id"],))); } } flutterLocalNotificationsPlugin .getNotificationAppLaunchDetails() .then((value) async { if (!value.didNotificationLaunchApp || value.payload == null) return; // do something. } }

回答 2 投票 0

NotificationCenter 可以在 Swift 中发布交叉目标吗?

我正在尝试从键盘类向主应用程序发布通知,并在自定义键盘打开时更新 UI 或暂停某些功能。 在键盘的viewDidLoad中: 通知中心.default.post(

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.