App Icon in Remote Notification alert box - iphone

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 ?

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.

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.

There are three things a push notification can do:
Display a short text message
Play a brief sound
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

Related

Full Screen Call Push Notification - iOS

I would like to implement a full screen push notification in iOS
(Something like WhatsApp's when a user calls another user in iOS)
Currently I notification that pops up on the top toolbar, its small and can be swiped. I would rather have it where the whole screen is taken over by the call screen and can be answered or declined.
Do I have to use PushKit from apple or does the SinchSDK (SinchRTC) already include this?
That feature is included in apples CallKit, not pushkit.
Sinch support push kit (voipPushes) and we are
working on callkit, but right now we don't support it at all even if you roll it yourself.

Wrong app icon on push notification badge iphone

I have implemented push notifications for my iPhone application. Everything is working fine. Only problem is when I receive notification during app is in background the iOS notification shows wrong icon for the notification. Like if notification came for App A it shows the icon of App B in notification badge.
What can cause this? Is it certificates problem or what? Any idea?
if you have some images name like "icon.png", that will be displayed in push notification
Few more thing can cause this issue,
If you have used same push profile for two different project. Than also this will happen.
Moreover if you have specified Small-Icon.png in you .plist file than that would be used as a push notification icon in notification screen.
Please make sure this things in your projects.

how to make the notification appear on the locked screen of iphone

i am having application in which i am showing notifications .The notifications are displayed properly when my app is in background but the problem is notification does not appear when the iphone screen is locked.Please help me in solving this problem.
This is a user preference that can be activated in the Notifications section of the Settings app. There is no way to control this from within your app.

iOS 5 Push Notification - From Developing perspective

I was watching videos of iOS 5 Push Notification and I encountered that there are some differences in notifying User apart from Badges, Alert and Sound.
Please go through the Youtube video. Here the notification of Twitter comes on the status bar. So do we need to have programming in different way than our usual push notification?
Also when we drag that view downwards than directly navigated to new Message. So how can we achieve those new changes as being a Developer?
One More question is How can we achieve the scrolling in Notification Window....
Do you mean the banner that sits over the status bar? That's an option your users can choose in Settings. Just push an alert as usual, and if your users have selected to display alerts as banners, that's what they'll see.
No changes need to be done at developer end for viewing notifications in Notification bar or Banner. Though I have no idea how to enable scrolling in Notification Window.

How to display an image as application badge on iPhone or iPad?

On this page it says:
Additional Information
Applications can offer up to three types of push notifications:
Sounds: Plays an audible alert
Alerts: Displays an alert on the screen
Badges: Displays an image/number on the application icon
Source: http://support.apple.com/kb/HT3576
How do we do that?
Thanks,
I think that information in confusing on Apple's part, but you can't use an image as a badge. The red badge circle with the number is what they are referring to as the "image".