Reputation: 1139
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
Reputation: 107171
If you are looking for something like below:
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
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
Reputation: 4500
There are three things a push notification can do:
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