Full Screen Call Push Notification - iOS - swift

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.

Related

Is there a way to display a specific Flutter page when screen is locked?

please is there a way to display or open a Flutter page when screen is locked in Flutter like how WhatsApp displays incoming call page when screen is locked? I used Wake up plugin but can't display the page on screen locked. Please I need a guide to do that. Thanks in advance.
What you are looking for is called a time sensitive notification with a full screen notification. What it does is that if the screen is locked it opens the activity linked to the pending intent used for full screen notification. When the phone is unlocked, it shows a heads up notification instead. You must have seen this behavior with all kinds of telephony apps and alarm apps.
A flutter app runs inside a single activity, so if you mark that as the activity to show during the locked state, the app will show. But it will act similar to how the app would when you launch it from start. Also the behavior is unpredictable as it is behind a wakelock. So a better option would be to move it to a separate activity and do the needful. Example of how to implement full screen notifications.
https://medium.com/android-news/full-screen-intent-notifications-android-85ea2f5b5dc1

Push notification is not working when app is opened

I have an issue with my app's push notification on ios 7, it works when app in back ground or remove it from dock. But push messages DO NOT work (not appearing) when the app screen comes to foreground.
But it was fine with iOS 6. Any change require in coding or storyboard settings?
When PushNotification is arrive it calls didReceiveRemoteNotification method when app is in foreground.
And when your app is not in foreground it will send to Notification Center, and if user tap on notification from notification center then it will call didReceiveRemoteNotificationmethod.
//According to Apple Push notification Document.
Push notifications serve much the same purpose as a background application on a desktop system, but without the additional overhead. For an application that is not currently running—or, in the case of iOS, not running in the foreground—the notification occurs indirectly.
Check Link :)

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 ?
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

Can you get the system answer call button in Cocoa Touch?

When you get a call on iPhone a system alert it is shown. There is a nice answer call button, can I use somehow this button on my app or i have to design it by myself?
I suppose this are system resources and could be available in the API.
It is not available for public use in the iOS SDK as of iOS 5
I don't really know how to fetch tat button from an iPhone or its simulator but why don't you customize your own button using this site http://dabuttonfactory.com/ ? It helped me sometimes when I needed buttons for my apps as well.

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.