notifications

MacOS App Local Notification Not Showing when testing with XCode

邮差的信 提交于 2020-12-31 10:44:35
问题 I have tried to add a banner notification generator to my macOS swift app and the banner does not appear when test running in XCode and neither are there any new notifications visible in the notification centre. Other apps on my computer are generating notifications regularly. What have I missed? I have granted permission when requested My app delegate is as follows class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDelegate { @IBOutlet weak var mainMenu: NSMenu! func

Android: After creating a new notification, the older one is replaced

北城余情 提交于 2020-12-29 08:57:27
问题 I want to create a notification without canceling/deleting previous notifications from my app. Here is my code for creating a notification: private void notification(Context context, String title, String content) { NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context) .setSmallIcon(R.drawable.notification_icon) .setContentTitle(title) .setContentText(content); Intent resultIntent = new Intent(context, MainActivity.class); TaskStackBuilder stackBuilder =

Database to track user notifications or activity (Facebook like)

*爱你&永不变心* 提交于 2020-12-29 06:27:58
问题 I've just read the following posts on the same topic: Facebook like notifications tracking (DB Design) and Database design to store notifications to users Some solutions were offered but not exactly what I need and how it should be for a Facebook-like notification system. In a notification, we often have some links pointing to the user who took some action, link to a post or video he commented on, link to anything, and ofter we have several links in a single notification. notification -------

Database to track user notifications or activity (Facebook like)

那年仲夏 提交于 2020-12-29 06:27:52
问题 I've just read the following posts on the same topic: Facebook like notifications tracking (DB Design) and Database design to store notifications to users Some solutions were offered but not exactly what I need and how it should be for a Facebook-like notification system. In a notification, we often have some links pointing to the user who took some action, link to a post or video he commented on, link to anything, and ofter we have several links in a single notification. notification -------

Can I use iOS push notifications for app realtime content update?

旧城冷巷雨未停 提交于 2020-12-16 06:01:53
问题 I would like to use push notification message without badge, message or sound, only with application related JSON in order to update app's content in realtime. These notifications useless when app is not running so I won't send them when app enters background or user idle (sending unsubsrcibe to my server ) and subscribe again when app enters foreground or user activity. Does Apple permit this usage of push notification? I wouldn't like to use polling or custom socket based solution. 回答1: I

How to show custom notification by default with collapsed layout when expand layout is enable in Android

a 夏天 提交于 2020-12-04 03:35:34
问题 I want to show my custom notification by support both small and large layout as screenshots above when user collapse or expand the notification. But the result it shows expanded notification by default. I want to show it as collapsed notification by default and only show expanded notification when user expand it. Please check my code bellow: private fun initCustomNotification() { // Get the layouts to use in the custom notification val notificationLayout = RemoteViews(packageName, R.layout

REST API with active push notifications from server to client

你。 提交于 2020-11-30 06:27:21
问题 Problem description i am working on a Xamarin application that consumes a REST API written in Python flask. The Xamarin application offers virtual shopping lists where user can collaborate on buying stuff they have on a shared list. To improve the user experience, i want to be able to actively notify the user about finished items on the list. Possible solutions: Synchronous API polling from client side Notifications are stored by the API in a relational database and have a flag indicating if