Linphone PushKit - Not receive VoIP PushKit in TestFlight mode - ios

I'm working on linphone iOS repository and I made some UI changes and added some new features to it for customization! Now, I wanna add VoIP PushKit capability to this project for receive incoming calls when app is in background mode or force closed by user!
I created all necessary certificates for it from the apple developer account and everything is ok in development mode ( when run the app in my iPhone by usb cable ) but when I build the app for production mode and send it to AppStore connect and release it to TestFlight, The app can not receive pushes from APNS! PushKit Token is registered and I save it in my server db successfully but when I send a VoIP push to app, is not received! I try to get log of installed app ( TestFlight mode ) and I've found out push receive to OS but the OS not awake the app and delivered the push to my app!
Please help me to fix this problem! TNX all!

If in your development environment, everything is working (meaning: you get the PushKit notification and also the corresponding SIP INVITE and CallKit is launched and you can take the call), it probably means that you haven't switched your APNS client from development to production. See e.g. under https://github.com/nomad/houston :
# conveniently use `Houston::Client.development` or `Houston::Client.production`.
APN = Houston::Client.development
APN.certificate = File.read('/path/to/apple_push_notification.pem')

Related

iOS app needs reinstall to receive push notifications

I have encountered a strange behaviour with an iOS app that my team has developed.
The users can enable notifications in the app and receives notifications from Firebase Cloud Messaging. We had complaints that the notifications were not coming through, so after some basic troubleshooting, we discovered the only solution was for the users to uninstall the app and reinstall it while allowing the notifications when they start it the first time.
Why did this happen? Did something change from Apple's side? Publishing a new version of the app fixes the problem?
Thanks

Notification not working for making VOIP calls using QuickBlox Sdk

We are receiving Notification when directly build from Xcode to a mobile device. But when we create an ipa file and install it on mobile device, notification does not work.We are using free version of iOS SDK for QuickBlox.
We have managed to make calls when the app is in foreground. Current we need help with the Notification part, so that the call is shown in the CallKit even when the app is not open
I got solution for above issue. when we create ipa for testing that time select development option don't select Adhoc option.

Not getting PushKit notifications on application downloaded from AppStore

I am not getting PushKit notification on application downloaded from AppStore. Though it works fine if I install it directly from XCode.
I am using PushKit along with CallKit for VoIP calls.
The Apple server used for Production mode is api.push.apple.com:443, whereas the server used for Development mode is api.sandbox.push.apple.com:443
Read here: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns
Make sure the backend mechanism addresses the correct server for each mode.

Automated Push Notification Testing with XCTest

I'm attempting to automate the testing of my push notifications using XCTest and Continuous Integration with Xcode Server.
As far as I can tell, I have correctly configured my push notifications, as I receive them correctly when the app is running. The issue is, when I run a test (even on a physical device) I don't receive the notification. I have confirmed on both the sending device as well as the backend that the push notification has been sent. As far as I know, you cannot receive push notifications on iOS simulators, but I am running the test on an actual device, so I was assuming this would be different.
Obviously I can check manually to see if the information is consistent through the sending device, backend and receiving device, but I was hoping to automate this entire process.
Thanks for the help.
While there is no way to deal with PNs on Simulator with Apple-provided instruments, there is magic 3-rd party toolset to help on it:
https://github.com/acoomans/SimulatorRemoteNotifications
SimulatorRemoteNotifications is a library to send mock remote notifications to the iOS simulator.
The library extends UIApplication by embedding a mini server that listen for UDP packets containing JSON-formated payload, and a service to send notifications to the mini server.
This project includes the iOS Simulator Notifications MacOSX app to help you send the mock notifications.

iOS silent push notification only works when connected to xcode

I have an odd issue.
I recently updated my Xcode to 6.1.1 to make a change to an app I previously released with Xcode 5 (working great). Now for some reason with the new Xcode when I test my background silent push notification it only completely works when I have my iPhone connected to my Mac?
What the app does is when it gets a silent push the app retrieves data from a server. I added the default sound to the silent push for testing, and I've confirmed that the app does get the push but it does not connect to the server to get the new data. But if I plug in the lightning cable to my mac everything works great, gets data from server etc.
I'm not sure what to do? Any ideas or direction is greatly appreciated.
Thanks!
I got no problem to send silent push to my app, even if the app is not connected to Xcode BUT you have to notice that silent push notification is being delivered only if your app is running in the background. If you force quit your app using double tap on iPhone home button, the notification is ignored.
It is probably an Apple rule to let user completely kill an app and stop any outgoing/incoming connection

Resources