what is notification channel id?notifications not work in api 27 [duplicate]

As stated in the Android developers website: Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel. For each channel, you can set the visual and auditory behavior that is applied to all notifications in that channel. Then, users can change these settings and decide which notification channels from your … Read more

What ways are out there to display a desktop notification from a web app?

Below is a working example of desktop notifications for Chrome, Firefox, Opera and Safari, copied from Chrome desktop notification example. Try it live on JSBin. // request permission on page load document.addEventListener(‘DOMContentLoaded’, function () { if (Notification.permission !== “granted”) Notification.requestPermission(); }); function notifyMe() { if (!Notification) { alert(‘Desktop notifications not available in your browser. Try … Read more

resuming an activity from a notification

I’ve solved this issue by changing the launchMode of my activity to singleTask in the androidManifest.xml file. The default value for this property is standard, which allows any number of instances to run. “singleTask” and “singleInstance” activities can only begin a task. They are always at the root of the activity stack. Moreover, the device … Read more

UNUserNotificationCenter did receive response with completion handler is never called iOS10, swift 2.3

Request identifier is not the notification category. Just add this line: content.categoryIdentifier = identifier Update: Just made a simple app. Everything seems to working fine: class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { UNUserNotificationCenter.current().delegate = self UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound]) { (granted, error) … Read more

Disable vibration for a notification

After a long trial & error session, I think I finally understood what’s wrong. The problem lies in this instruction notificationBuilder.setDefaults(Notification.DEFAULT_ALL). No matter what parameter you pass to notificationBuilder.setVibrate() after setting DEFAULT_ALL or DEFAULT_VIBRATE will be silently discarded. Someone at Google must have decided to give a higher precedence to setDefaults than to setVibrate. This … Read more

How to make notification intent resume rather than making a new intent?

The idea is that people can navigate away from this activity and quickly access it again from any screen they want by pulling down the drop down menu and selecting it. Please make this optional. However, when the notification is pressed it starts a new instance of the activity. That will happen by default. What … Read more

What are the sizes of the icons in Android notifications action-buttons?

So to clarify this, I found the following in the Javadoc within the Android support library: Add an action to this notification. Actions are typically displayed by the system as a button adjacent to the notification content. Every action must have an icon (32dp square and matching the Holo Dark action bar visual style, a … Read more

On Android 8.1 API 27 notification does not display

If you get this error should be paid attention to 2 items and them order: NotificationChannel mChannel = new NotificationChannel(id, name, importance); builder = new NotificationCompat.Builder(context, id); Also NotificationManager notifManager and NotificationChannel mChannel are created only once. There are required setters for Notification: builder.setContentTitle() // required .setSmallIcon() // required .setContentText() // required See example: private … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)