Mayank
Mayank

Reputation: 1139

App Icon in Remote Notification alert box

I am sending push notification an iOS app using php.

Whenever the push notification is displayed in the iPhone I want to display my App's Icon in the notification.

How this can be done ?

Upvotes: 0

Views: 284

Answers (3)

Midhun MP
Midhun MP

Reputation: 107171

If you are looking for something like below:

Push notification

It's default behavior of push notification in Lock screen.

You don't need to do anything to display your notification like this.

Image from Google.

Upvotes: 2

Johan
Johan

Reputation: 1951

The notifications are displayed either as banner or as alert. Your cant set any app icon on the alert and the icon on the banner is automatically taken from your app icon in the bundle.

Upvotes: 1

Rushi
Rushi

Reputation: 4500

There are three things a push notification can do:

  1. Display a short text message
  2. Play a brief sound
  3. Set a number in a badge on the app’s icon.

I don't think you can manually set the app icon in push notification message.

Ray Wenderlich did a great tutorial on this. Try this two links:

Part 1: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

Part 2: http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2

Upvotes: 0

Related Questions