Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Push Notification is not working on iOS 10

After the installing the new update of iOS 10, push notifications are not working, while the same implementation of code is working for iOS 9. Is there any new thing for iOS 10 for push notification. As, I am not able figure it out. Also, is it necessary to turn on push notification under capabilities.

like image 354
Sanchit Kumar Singh Avatar asked Sep 14 '16 11:09

Sanchit Kumar Singh


People also ask

Why push notification is not working for IOS?

You can fix an iPhone that's not getting notifications by restarting it or making sure notifications are turned on. You should also make sure your iPhone is connected to the internet so apps can receive notifications. If all else fails, you should try resetting the iPhone — just make sure to back it up first.

How do I get notifications on my iPhone 10?

Find your notifications in Notification CenterOn the Lock Screen: Swipe up from the middle of the screen. On other screens: Swipe down from the top center. Then you can scroll up to see older notifications, if there are any.

Why are my push notifications not working?

Check Settings > Notifications & Actions > Turn on Get notifications from apps and other senders. Make sure your site and browser are also enabled.


2 Answers

Need some changes for iOS 10 with xCode 8 GM You need to implement UserNotification.framework and their delegate methods to get work of push notifications and in capabilities needs to enable Push Notifications.

You have to import new UserNotification.framework. Please follow this link : Push notification issue with iOS 10

like image 145
Ashish Shah Avatar answered Sep 28 '22 18:09

Ashish Shah


Enabling the push notifications capabilities were not required as part of Xcode 7. This is now required in Xcode 8. By enabling push notifications capabilities in Xcode 8, it'll add the following changes:

project.pbxproj

com.apple.Push = {
    enabled = 1;
};

*.entitlements (for development)

<key>aps-environment</key>
<string>*development*</string>

*.entitlements (for enterprise and production)

<key>aps-environment</key>
<string>*production*</string>
like image 43
Jen C Avatar answered Sep 28 '22 19:09

Jen C