2

Push notification banner not at all coming even when app is in background in iOS - Swift 3.0. I followed following link to implement push notification for my app.

Registering for Push Notifications in Xcode 8/Swift 3.0?

Community
  • 1
  • 1
ABHILASH P
  • 105
  • 1
  • 10

3 Answers3

0

I found them unreliable as well when I had the device connected to Xcode. Try removing and installing the app again, and then disconnect it from Xcode. It should start showing up after that when it enters background but, it's definitely not that reliable.

Hope that helps.

Kind regards, Mukund

Mukund Agarwal
  • 575
  • 5
  • 14
  • I tried removing and installing the app again, and then disconnect it from Xcode. But the issue still exists. Only sound and badge are coming. No banner is coming. – ABHILASH P Apr 04 '17 at 11:14
  • Any other settings issue? – ABHILASH P Apr 04 '17 at 12:20
  • Does it have banner enabled in the app's settings page?https://support.apple.com/library/content/dam/edam/applecare/images/en_US/iOS/ios10-iphone6-settings-notifications-messages.jpg – Mukund Agarwal Apr 04 '17 at 14:02
  • Finally solved it. The "alert" keyword value in the userInfo was coming as a Dictionary from server. When "alert" keyword is changed to string,(at server side) Banner started appearing. Thanks for all comments. – ABHILASH P Apr 04 '17 at 14:45
0

Finally solved it. The "alert" keyword value in the userInfo was coming as a Dictionary from server. When "alert" keyword is changed to string,(at server side) Banner started appearing. Thanks for all comments.

ABHILASH P
  • 105
  • 1
  • 10
0

enter image description here

Don't forget to make sure your phone is not in "DO NOT DISTURB" mode.

ScottyBlades
  • 12,189
  • 5
  • 77
  • 85