Updating from ios6 to ios7 push notification stopped working - ios

I have some issues on push notification on IOS6 and IOS7 in ipad. Previously in IOS6 push notifications were working fine. After updating to IOS7 it is not consistent. Sometimes i am getting notifications and sometimes not. I have a messaging ipad app. From server side it is all fine but I do not receive any notfication on iOS6 & IOS7.
Even for other apps like facebook also not getting notifications.
Thanks in advance.

Did you kill your app with the app switcher?
Since ios7 killed apps do not receive push notifications.
See my answer here: Silent push is not working when app is killed from app switcher in ios7

Related

Why push notification is shown when app is foreground? (iOS10 / iPhone 7)

I'm having weird experience.
Why push notification is shown (in native banner) when app is foreground?
It's only reproduced on iPhone 7 (iOS10.1.1).
I tested on the other iPhones like a iPhone 5 and iPhone 6s with same app, same iOS version.
It's not shown when app is in foreground as normal.
Push banner appears only on iPhone 7.
Is this normal?
My app is created by Xamarin.forms. (For now, Xamarin convert c# code to objective C, so it's basically objective c)
Thanks.
Starting with iOS 10 developers can control how notifications are shown when the app is in focus. This is done by setting up a UNUserNotificationCenterDelegate.
The userNotificationCenter:willPresentNotification:withCompletionHandler: will be fired on this delegate where UNNotificationPresentationOptions can be passed to the completionHandler to determine if the notification should be displayed along with its sound and badge value update.
Based on your question it sounds like you are using a SDK or framework to add notifications. You can still use a UNUserNotificationCenterDelegate along with most notification SDKs.
Note that on iOS 9 and older devices this delegate isn't available and notifications will not show in the notification center when they are received while your app is in focus. Instead you must must still use UIApplicationDelegate for older versions of iOS and show an in app message for them.
If an application is upgraded to iOS10, and developers of their app have used the UserNotifications framework.Then there are functions by which notification can be displayed as a native banner when app is in foreground.
The UNNotificationPresentationOptions flags allow you to specify UNNotificationPresentationOptionAlert to display an alert using the text provided by the notification.
It effect will same if you are using iOS10 , and app is compatible with UserNotifications framework.
As you mentioned, you have tested the app with Other device with same version, Then might be their app's latest version is not installed on those devices.
It is not based on iPhone7 only. That will work when iOS10 is
installed in your device and application is using UserNotifications
framework for handling the notification.

App is not working in background on iOS 10.1.1

I am working on chatting/calling app. To make it work in background mode I've enabled these modes:
It is working very fine with iOS 9.3.4, iOS 10.
Working means it is receiving messages, calls, responding to server when in background, even though there is no call is in progress.
When I run it on iPhone6 with iOS 10.1.1, it is stopping responding when enters in background.
Anyone faced this anytime? Any workaround found?
I am using Xcode8.2 Beta
I also tried enabling Background Fetch mode, but didn't helped!
UPDATE
It is working in background only when any call is in progress on iOS 10.1.1.
Actually I gone through various reads on net, it says that iOS10 is stopped supporting for background app execution for VoIP apps.
To run VoIP apps in background, there is no way.
My ap was running in background on iOS10 was because I was building it against iOS9 SDK on Xcode 7.
Only one thing we can do is use PushKit Framework and get VoIP silent notifications to awake the app in background!

How to show notifications in iWatch?

I am working on an iWatch application. I am doing a sample app using swift and my requirement is to display LocalNotifications. When i run my app in my iPhone simulator i’m getting the notifications but i'm not getting notifications when i run the app in iWatch simulator. Can any one explain me about how local notifications display in iWatch.
Do we need to design any UI to show the notifications on iWatch i.e static or dynamic interfaces in iWatch Interface builder?
Thanks in advance.
Run your watch app Select notification target on simulator, dismiss the notification and stay on clock face.
Hit ⌘L to lock iOS simulator.
Enjoy notification arriving to watch app.

how to trigger notification from iPhone on iWatch

A noob question. I want to receive a notification when variable changes on the iOS app. to be clear. I want show notification on iWatch app when for example the user presses a button on the iOS App.
I have seen many tutorials for using the notifications interface. but all of them doesn't specify how to trigger the notifications from iPhone.
Anyone who knows a proper guide?
Thank you
Your notifications will go to your iPhone or your Apple Watch, depending on the device that you're using.
iOS will take care of notifications if your ios app supports notifications.
If your iPhone is unlocked, you get notifications on your iPhone, instead of your Apple Watch.
If your iPhone is locked or asleep, and your Apple Watch is unlocked and on your wrist, you get notifications on your Apple Watch.

iOS push notification brings back old notifications to the lock screen

I use Parse to send push notifications to iOS devices. This works fine. But SOMETIMES (Here is the question mark) there is a weird behavior:
Send push notification to a device... I swipe/tap it on the device and everything is ok. It is no longer visible on the lock screen, but on the notification center (Pull down menu). Alright!
Send another push notification to this device while iPhone screen is off... Notification appears, but also the old notification appears again (Even when it is one day old) and both sounds are being played almost simultaneously.
An Parse employee answered this question:
It's rare, but can happen when an app sends a lot of similar
notifications to the same device. It's a known problem on our side,
it's on our plate to get fixed.
See here: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!topic/parse-developers/Zo3xBRLWttc

Resources