Push notifications do not work on Android 5.1. Check if your iPhone is in Quiet Mode. Sign out of iCloud and then sign in again

The problem with notifications is one of the common ones iOS problems, which you can find on your iPhone or iPad. You have found that notification sounds and vibrations are not working on your iPhone. You need to fix this problem so that you can learn about latest messages or news from your applications.

Don't worry if you encounter this issue while updating to iOS 10 or new iOS 11/11.1. You can try our tips below to fix this problem. Applicable to iPhone 7/6s/6/5s/4s and new iPhone X/iPhone 8.

1. Simply restart your iPhone

No the best way fix problems with iOS than just restarting the device. I do not believe? Give it a try.

To fix the problem of not receiving notifications on your iPhone, press the power on/off button for 2-3 seconds. When the slider appears at the top of the screen, release the Power On/Off button and slide it to the right to turn off your iPhone.

Disabling your iPhone stops all operations in progress. background. Many of them are self-initiated software and may cause your device to malfunction.

When you turn off your iPhone and turn it on or when you reset your iPhone, it boots normally and starts again.

2. Check if your iPhone is in Quiet Mode

If your iPhone is in Silent mode, this is most likely why notifications are not coming to your iPhone. Toggle the "Mute" button on the sidebar of your iPhone and see if the orange bar appears as shown below.

If the orange bar is visible, it means your iPhone is in Silent mode, which prevents notifications from working. Simply switch the button to the other side to place your iPhone in general mode, and you will receive all push notifications again.

Many times, users put their iPhone in silent mode and forget about it. For all the new iPhone users, this tip will be useful, check before moving on to other solutions.

Do Not Disturb, better known as DND, is a great feature offered by iOS. With this feature, you can turn off notifications and calls if you want, except for receiving calls from selected (favorite) contacts.

However, if this feature was enabled unknowingly or by mistake, it may cause the iPhone to not receive notifications. When you see the moon icon at the top of the home screen, it means the feature is enabled.

You can turn off Do Not Disturb mode by visiting Settings > Do Not Disturb > Turn Off

Once you disable DND, push notifications will start working on your iPhone.

Also make sure that Do Not Disturb is not turned on for any specific contacts. To check this, launch the Messages app where you can see your messages. Does any message have a Moon sign? If yes, it means you have enabled do not disturb for this contact:

Disable this, the Details tab, and turn off Do Not Disturb. Many users are not aware of this great feature. If you are one of them, you can now use it.

4. Check app notifications

Another simple one, but effective advice– check notifications in applications. Sometimes notifications for some applications are disabled, due to which notifications do not arrive on the iPhone. You can check whether notifications are enabled in apps by going to Settings > Select Notifications as shown in the screenshot below.

You will now see all the apps that regularly send notifications on your iPhone. Click on the app that is not receiving notifications on your iPhone and turn on “Allow notifications” as shown below.

Isn't it that simple? Just follow the following actions and enable notifications in all important apps like Mail, Calendar, Message, etc. to allow push notifications.

5. Connect to a stable network

You need a stable internet connection to support all your apps and their push notifications. Until your iPhone is connected to a strong Wi-Fi networks or cellular data, you won't receive notifications instantly.

To connect to Wi-Fi, visit Settings > tap on Wi-Fi > Turn it on and finally select your preferred network and connect to it by entering its password.

To turn on your cellular data (if you have an active tariff plan), tap Settings > tap Cellular Data > turn it on.

Note. If you find that the Internet connection is not strong enough due to a network problem while traveling, please be patient until you get good network and then try to connect again.

6. Re-login to your Apple ID account

Your Apple ID is your address Email, which you use to login App Store and others Apple services. If everything works as expected, you enter your Apple ID early on (most likely during initial setup).

You need to re-sign into your Apple ID account. This is one of the frequently used methods when there is a problem with notifications on an iPhone. To exit from Apple account ID, go to Settings > Apple ID, iCloud, iTunes Store and App Store."

7. Sign out of iCloud and then sign in again

iCloud great way Sync your devices, from photos to files and web history. But when you encounter some problems, sometimes you need to log out of iCloud. Follow this guide to learn how to do this on iPhone.

Signing out of iCloud in iOS 10.3 is a little different than in the past and includes a new Apple ID banner.

Open Settings, then tap the Apple ID banner at the top of the screen (Apple ID, iCloud, iTunes, App Store). Scroll down and click " Go out" > « Sign out of iCloud".

Second way for iOS versions 10.2.1 and below. Open Settings on your iPhone, tap " iCloud">Scroll down and tap " Go out" > « Go out" > « Deletefrom iPhone».

Now go back in. That's all, notifications should work, if this doesn't help you, see the tips below!

8. Update iOS on iPhone

We all know about what Apple releases iOS updates to introduce new and improved features for your devices and fix bugs that may be causing problems with notifications not being received on your phone.

9. Restore iPhone

Restore your iPhone to fix the error that prevents notifications from coming to your iPhone, this fix should be your last option. This method resets your iPhone, making it as fast as if you had just bought it.

You will eventually lose all your saved data and settings and thus, it is important to save them before trying this method. Follow the steps below to restore iPhone via iTunes.

1. Connect your iPhone to your computer. Click Browse > Create a copy now as shown in the screenshot below.

2. Then “Click Restore iPhone”, iTunes will pop up a confirmation message. Finally click "Restore" and wait for the process to complete.

3. Once this is done, restart your iPhone and set it up again to check if push notifications work on it.

Important note. Although this is a tedious way to fix notifications not working on iPhone, this method is known to solve the problem 9 out of 10 times. Once again, we advise you to choose this method only if none of the other solutions will work.

I was prompted to write this article by a task that was assigned to me in one of my work projects: to implement Push notifications in an application. It seemed that everything was simple: you study the documentation, examples and move forward. In addition, I already had experience working with notifications. But it was not there…

The service, within which the Android application is implemented, has quite strict requirements for the operation of Push notifications. It is necessary to notify the user of some action within 30-60 seconds. If the notification is successful, a request is sent from the user's device to the server with the appropriate status. From the documentation it is known that the GCM service ( Google Cloud Messaging) does not guarantee delivery of PUSH notifications to devices, therefore, as a backdoor option, if these time frames are violated, our service notifies the user with via SMS messages. Because the SMS cost messages are significantly higher than PUSH notifications, it is necessary to reduce the flow as much as possible SMS messages to client devices.

After studying the documentation and installing push notifications, we sent the first build of the application to test to several clients and began to wait. The results were approximately as follows:

  • with active Wifi connection everything works perfectly: notifications are delivered, clients are happy.
  • with active mobile internet The fun has begun.
Some clients wrote that they experienced delays in the delivery of push notifications, or received both PUSH and SMS at the same time, which is quite impractical. Others wrote that they received no notifications at all, but only SMS. For others, like our test devices, everything was ok. Collecting as much as possible from dissatisfied customers possible information, began to understand the problem and came up with the following list of restrictions (this list later resulted in a full-fledged FAQ):
  • Enabled Energy Saving mode (for example, Stamina on Sony devices) affects the operation of Push notifications;
  • The user must have at least 1 active Google account on the device;
  • you need to make sure that your device has current version applications “ Google Services Play”;
  • check whether notifications for the application are disabled (check the box on the application page in the phone settings);
  • check whether the background mode for the application is limited (the setting is located in the “Data Usage” menu);
  • The GCM documentation states that notifications are sent only to certain ports, so the settings of the router, firewall and antivirus are also worth taking into account.
Having sent this reminder to all clients, we again began to wait for the results. And they turned out to be “not very good” again. They began to dig further.

On at this stage The one written by the guys from Mail.ru helped a lot. It describes in great detail the intricacies of implementing GCM on the client side, as well as the points due to which Push notifications refuse to work in mobile networks. Ultimately, the decision was made to keep my connection to the server in conjunction with GCM.

Before making a decision, it is worth highlighting a few very important points, which allow you to narrow down the range of potentially “non-working” devices:

  • the problem occurs only when connected to the mobile Internet;
  • According to customers, the problem occurs on Android version 4 and higher.
And so, let's move on to implementation.

An experienced Android developer will immediately say that there are at least 2 solutions to the problem: use Service or AlarmManager. We tried both options. Let's consider the first of them.

In order to create a system-indestructible service that will constantly hang in the background and perform our task, we used the method:

StartForeground(int notificationID, Notification notification);
Where

  • notificationId - some unique identificator notifications that will be displayed in the status bar and in the sliding curtain;
  • notification - the notification itself.
IN in this case prerequisite is to display a notification in the status bar. This approach ensures that the service will be given higher priority (since it interacts with the UI part of the system) when there is a lack of memory on the device and the system will be one of the last to unload it. We don’t need this notification, so we used the following idea: it’s enough to launch the second service simultaneously with the first one and for both services as notificationID use the same value. Then kill the second service. Wherein the notification will disappear from the bar status, but the functionality and priority capabilities of the first service will remain.

Having realized this approach, we sent the assembly for testing. Based on the results, it turned out that the system was still unloading the service, and from the logs we saw how significant time gaps occurred when requesting data in the background from our server. Therefore, we started implementing the second option - AlarmManager.

AlarmManager is a class that provides work with, roughly speaking, an “alarm clock”. It allows us to specify the time after which the system will send a broadcast notification, which will wake up our application and give it the opportunity to perform the necessary actions. There are some limitations to how this method works and they need to be addressed:

  • data about “alarm clocks” will be erased after rebooting the device;
  • Alarm data will be erased after updating the application.
The first rake we stepped on was the method

SetRepeating()
which allows you to set an “alarm clock” that repeats at a certain interval. Screwing it on this method, they started testing, and the tests showed the opposite - the “alarm clock” did not repeat. We began to figure out what was going on and looked at the documentation. And it was there that they found the answer to the question - starting from API lvl 19 (Kitkat), absolutely all “alarm clocks” in the system became one-time ones. Conclusion - always read the documentation.

This rake was not a reason for frustration, because the solution to the problem is quite simple - launch a one-time “alarm clock” and reset it after it goes off. When implementing this approach, we came across the following rake - it turned out that for different levels The API needs to set alarms differently, but nothing was said in the documentation. But this problem I solved it quite simply - at random and by googling. Below is a code example that allows you to set alarms correctly:

Private static void setUpAlarm(final Context context, final Intent intent, final int timeInterval) ( final AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); final PendingIntent pi = PendingIntent.getBroadcast(context, timeInterval, intent, 0); am.cancel(pi); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) ( final AlarmManager.AlarmClockInfo alarmClockInfo = new AlarmManager.AlarmClockInfo(System.currentTimeMillis() + timeInterval, pi); am.setAlarmClock(alarmClockInfo, pi); ) else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) am.setExact(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + timeInterval, pi); else am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + timeInterval, pi);
I want to draw your attention to the flag AlarmManager.RTC_WAKEUP- it is with the help of it that the system will allow our application to “wake up” when the screen is inactive, when the device is in a locked state.

This approach with “alarm clocks” gave us desired result- the application in the background correctly polls the server for new data. We are currently finalizing the algorithm. On this moment We are implementing and testing the following optimization, which will allow us to narrow the range of devices and thereby reduce the load on the server:

  • the message sent by GCM to the device contains some unique ID;
  • having received the data GET request in the background we check whether an entry with the same ID already exists on the device;
  • if there is no such data locally on the device, we remember this ID and the time it was received T1;
  • we wait for PUSH with the same ID, upon receipt we remember the time T2 and check the difference between T2 and T1;
  • if the difference is more than some temporary criterion (value), then the device has a problem with delivery of notifications and for correct operation the service must constantly request data in the background from the server (I advise you to choose the criterion based on the problem being solved. In our case, the criterion was chosen equal to 5 minutes);
  • this difference should be calculated several times, for example 5-10 times, only after that we can conclude that the device really has a problem with receiving Push notifications (thus eliminating the situation of a banal connection disconnection, timeout, etc.);
  • needs to be driven away this algorithm periodically (for example, once a week, or after updating the OS on the device).
All the best. And fewer such crutches.

P.S.
Helped a lot during the testing process

Push notifications are pop-up windows that appear on the screen of a smartphone or tablet. They show incoming information from various sources, which can be instant messengers, applications or the system of the device itself. Absolutely everyone has push notifications modern devices: either apple gadgets or Google tablets. That is, there are Push notifications for iOS, Android, as well as .

Setting up push notifications on devices running operating systems iOS systems, Android and Windows Phone

Recently, the introduction of this function into the computer operating system has become especially popular. The first was Apple company with its own axis for OS X poppies. This is, of course, due to the high efficiency and convenience of push notifications, which have established themselves as the first source of information arriving on a smartphone or tablet. Indeed, it would be stupid to refute such a convenient method of notification: push notifications save device RAM, since they do not require permanent job programs or applications. Therefore, there will also be Internet traffic.

But besides caring so much about the user and timely notifications, push notifications can be annoying. Why do you need periodic reminders from or Twitter service that a certain user wrote: “I ate an omelette today. Was it delicious? Agree that this message does not carry any useful information load for you. It turns out that not all alerts are very useful. Of course, if you indiscriminately give access to and agree to send you notifications to programs and applications, then you will have millions of them. It’s not entirely pleasant to delete them later, because on some systems you can’t delete everything at once. This makes it necessary to know how to set up and disable push notifications. So let's figure it out correct installation this way of presenting information.

Volume buttons do much more than just increase or decrease the volume of your device's audio. Completely new options and features have been added to this menu, which will undoubtedly be useful to any user. They allow you to switch between alert modes:

  1. “Do not disturb” - all incoming reminders and messages will arrive silently;
  2. “Important” - you will only receive important messages, from a list of programs that can be adjusted. When you turn it on, you will see a settings tab. Here you can change the operating time of the mode. Moreover, there is a special tab that allows you to configure this mode more flexibly;
  3. “Everything” is the standard operation of the device.

It is worth noting that push notifications configured in this way will be much more useful. Especially convenient is the “Important” mode, where you can easily manage the list of applications to access notifications.

To fine-tune the information windows, just go to the section specially designated for this. It is located in the Settings menu of your device. In it you can, for example, remove notifications on the lock screen, open the possibility of notification for individual programs, change the list of blocked applications. Also very interesting opportunity is what's on the menu separate application you can choose at your discretion:

  1. Do not show from this application, thereby completely getting rid of the program's news;
  2. Or show them at the top of the list, including when only important notifications are allowed.

You can enable or disable push notifications on iOS using the Settings menu located on the Home screen. You won’t have to search for the required submenu for a long time, because in operating system it’s called “Notifications”. Once you have entered it, you will see a list on the right installed programs on the device. Above some there will be the inscription “turn on”, and above others it will be written “do not turn on”. This means that in the first case, alerts and push notifications are allowed, but in the second, accordingly, they are not. Let's consider detailed example settings.

So, it’s on our first list. Click there and go to the alert settings page for this program:

  1. The very first thing we have is the permission for notifications with the corresponding slider. If you move it, you will turn them off. Accordingly, Skype will not notify you about anything;
  2. Our next item is “In the notification center”. It allows you to control the quantity latest events, displayed in the notification bar (that is, in the notification center);
  3. Sounds. With this slider you adjust the availability soundtrack for notification;
  4. Badge sticker. Here you can adjust the presence of a sticker with the number of incoming events on the application icon located on the main screen;
  5. The penultimate setting in this menu is on the locked screen. It is responsible for displaying an alert when the screen of a tablet or smartphone is locked;
  6. Well, the last thing is the warning style on the unlocked screen. The first one with such a categorical word “No” removes all visual notifications. Banners are a line at the top of the screen. Well, and “Warnings”, which are displayed in a rectangle in the center of the screen with answer options. In fact, they are all clearly shown on the notification settings page.

Users may also have a question: why don’t push notifications arrive? In fact, there may be several reasons:

  1. How in iOS example, the program may simply not be included in the list of allowed ones. Then you will just need to go to the same menu and scroll down and select from the “Do not include” category the necessary program. On its page, just move the slider next to “Allow notifications”. On Android the situation is similar;
  2. The second reason could be that the application requires an Internet connection for notifications to work.

Now you’ve figured out why push notifications don’t arrive on Android or iOS, and how to enable, configure, or even disable them. Now you will only receive really important messages, and annoying game notifications will no longer bother you!

IN last years Chinese smartphones have become very popular in Russia Xiaomi company, characteristic feature which is the proprietary MIUI interface. It has particularly deep system settings that are not available to users standard versions android.

However, despite significant benefits, many complain that in xiaomi redmi note 3 notifications are not received - what is causing this and how to fix the problem is described below.

Why don't I receive notifications in MIUI?

Although MIUI seems simple, user-friendly interface, but it is fundamentally different from regular Android. MIUI developers have improved the autonomy of smartphones due to some restrictions for custom applications(whatsapp, viber, vk, etc.). For example, bans on background processes, network connections and geolocation significantly reduce the load on CPU, thereby reducing battery consumption. Time battery life is significantly extended.

However, this created an annoying drawback. Users noticed that in xiaomi smartphones Sometimes notifications from your favorite programs do not arrive. Moreover, there are no notifications, even if the application was launched manually. And if the screen goes dark, you can completely forget that social networks and other services should send important notifications.

Therefore, many are literally tormented by the question, why is everything so complicated and how to enable notifications in MIUI? For their sake, users are easily willing to sacrifice autonomy in order not to lose the necessary alerts. To solve this problem, it is necessary to carry out a comprehensive reconfiguration of MIUI, because... Unfortunately, there is no magic “turn on notifications” button.

Background mode (power saving)

One of the points deep customization, which we still need to try to find. Let's take the example of our employee's smartphone, whose redmi note 3 pro no longer receives notifications. The menu name may differ depending on the MIUI build, so trust your intuition and look for something similar in the settings: Advanced, Performance and battery, Energy consumption by applications. There will be several power saving modes, of which “Standard” is active by default. It is he who blocks access to network connections and geolocation. Naturally, in such a remote offline environment, applications on xiaomi redmi cannot show any notifications at all. It is curious that in this mode, MIUI independently determines which background processes to block, so it is difficult to predict when certain notifications will arrive.

xiaomi redmi 3s power saving modes

If you found these settings, then you are also faced with the problem of lack of alerts in the “Standard” power saving mode. At this stage there are 2 options.

  1. You can simply turn off power saving. Then MIUI should start working like regular Android, when the system kernel independently regulates all background processes, access rights, priorities, etc. Theoretically, all applications should have full access To background activity, networks, etc.
  2. Experienced users may do differently. Install maximum level energy saving ("Enhanced"), and then selectively unlock only important programs. This setup takes literally three minutes, but you can be sure that the smartphone’s resources will be allocated only for truly needed by the user processes. By the way, then you can also limit the background activity of system Xiaomi applications, which are unlikely to be in great demand by domestic users.

Setting up notification types

Setting up background app activity was just the beginning of recovery normal operation notifications. Few people know, but the MIUI interface also allows you to control the types of notifications from applications.

Let's explain with an example Facebook Messenger. The program can show notifications about messages in the curtain or change the indicator with a number on its icon unread messages. However, a floating round window on the desktop is much more convenient, because... Sometimes you cannot open the corresponding message from the curtain. If your phone has one type of notification, but lacks another, then the problem lies in the limitation of these same types.

To fix this, you need to open “Notifications and calls” in settings, and then find “Application notifications”. Next there will be a list of applications that are allowed notifications. You can turn off unnecessary ones, and for necessary programs- configure notification types and priorities. This is where the “Pop-up notifications” of applications are activated, as well as the normal transition from the curtain.

Autostart applications

This is quite important because... Sometimes enabled autorun actually affects the correct operation of some applications. Tune automatic start programs while the device is booting up through the “Permissions”, “Autostart” menu in the “Security” section.

Let's go in and then install required parameters. It is advisable to set autorun for everyone important applications(social networks, instant messengers, etc.).

Pinning applications to RAM

This is a peculiar feature of the MIUI interface. Beginner users will not immediately recognize it. The point is that you can choose applications that will always be in random access memory, even if you “close all” through the menu running applications. This is very useful feature to consolidate messengers, social networks (VKontakte) and dialers into memory. Thanks to this, pinned applications open almost instantly, and the MIUI interface will force them to work, protecting them from unexpected closure. After rebooting the smartphone, all “pins” still work.

To do this in the menu running programs you need to “swipe” the shortcut down desired application(that is, where notifications are failing) and click on the lock. A padlock should appear on the shortcut, which means that the application is locked in RAM. To unpin, simply swipe the shortcut up.

Optimizing RAM and WiFi

In addition, in the “Energy Saving” section of the battery settings menu, there may be an option to periodically clean the RAM. This function removes from RAM Redmi Note unnecessary applications, which speeds up the operation of the device and reduces battery consumption, however, it is advisable to disable it if the situation with notifications is unstable.

IN WiFi settings It is also advisable to disable optimization, since when the screen is locked or turned off, the MIUI interface may simultaneously disconnect from wireless networks, again to save battery, but to the detriment of user convenience.

We hope these tips will help you overcome the notification problem. Write in the comments what exactly helped you cope with this problem.