Post

Replies

Boosts

Views

Activity

Reply to How to detect the SIM card status?
Thanks for your info. My app is a VoIP app that can provide emergency calls via VoIP. Now I want to do this when the user dials an emergency call in my app: If the iPhone has a SIM card, then route this emergency call to the Native dialer. If the iPhone has NO SIM card, or this is an iPad, then I can make this emergency call via our VoIP server. I know in the US/CA/AU, the iPhone can make emergency calls via the native Phone app even no SIM card inserted. But for other countries, we can not make sure. So I checked serviceCurrentRadioAccessTechnology solution, it seems word well after my testing. Can I use this to check the SIM card status.?
Jun ’25
Reply to Audio issue on iPhone 15 pro (iOS18.5)
@darkpaw Thanks for the reply, but I face this issue in my code and I can replicate it in the Apple CallKit demo. So I ask Apple dev here for suggestions and when this issue will be fixed. As I know, the iOS 17 is ok and other iPhone without dynamic island is ok.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’25
Reply to The app will be wake up from killed status by silent notification or not?
Thanks for your info, very helpful. One point to be clear: How to define the debug case: "for example if you are debugging your app at the time via Xcode". Cable conntected? Open console app? Open Xcode connect device. I tested my App store build and installed the APNs profile in my device. (iPhone 12 pro max, iOS18.3) Then I can see the app has been waken up from manual killed status from this method. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool and the launchOptions like: Optional([__C.UIApplicationLaunchOptionsKey(_rawValue: UIApplicationLaunchOptionsRemoteNotificationKey): { action = StopRing; aps = { "content-available" = 1; }; event = "/restapi/v1.0/account/xxxx/extension/xxxx/stop-ring"; from = 101; fromName = Lxx; serverId = "10.74.13.129.TAM"; telephonySessionId = "s-98cdf84c5e474a80a671895c750a293a"; timestamp = "2021-04-23T09:14:11.971Z"; to = 101; }])
Feb ’25
Reply to AVAudioSession's "availableInputs" not update in time
yes, I'm doing so. but in the case I post above: When BT (Airpods pro 2) DISCONNECTTED: it will print like below when the route change notification comes, this is wrong. should not contains the "BluetoothHFP" at this time. So @Engineer you can have demo based on my code. availableInputs=[__C.AVAudioSessionPort(_rawValue: MicrophoneBuiltIn), __C.AVAudioSessionPort(_rawValue: BluetoothHFP)], currentRouteInputs=[], currentRouteOutputs=[__C.AVAudioSessionPort(_rawValue: Speaker)]
Topic: Media Technologies SubTopic: Audio Tags:
Dec ’24
Reply to AVAudioSession's "availableInputs" not update in time
Thanks. @Engineer , I will check your info. But for now, my requirement is to create a button that can indicate the audio route state, eg: If no BT is connected, just a built-in and the speaker, Show a button with 2 states: normal(for build-in) and selected(Speaker). If has BT connected, tap the button will show the system "AVRoutePickerView" for user to choose a route. but now, I can't get the correct state when "user choose speaker when BT connected", at this time, when user tap the button, I need to show the "AVRoutePickerView", but the current route is speaker, I don't know if the BT is connected. Hope you can understand my requirements. thanks.
Topic: Media Technologies SubTopic: Audio Tags:
Dec ’24
Reply to AirPods Pro issue during a VoIP call,
We understand the importance of providing a focused sample project to reproduce the issue. However, this appears to be a rare and intermittent case, and we have not been able to reproduce it consistently in our testing environment. Here are the reproduction steps provided by the affected user: Make a VoIP call using our app. Switch the audio route from the built-in microphone to AirPods Pro (model: A2084, version: 6F21) during the call. Could you please provide further insight into the above questions?
Topic: Media Technologies SubTopic: Audio Tags:
Nov ’24
Reply to How to detect the SIM card status?
Thanks for your info. My app is a VoIP app that can provide emergency calls via VoIP. Now I want to do this when the user dials an emergency call in my app: If the iPhone has a SIM card, then route this emergency call to the Native dialer. If the iPhone has NO SIM card, or this is an iPad, then I can make this emergency call via our VoIP server. I know in the US/CA/AU, the iPhone can make emergency calls via the native Phone app even no SIM card inserted. But for other countries, we can not make sure. So I checked serviceCurrentRadioAccessTechnology solution, it seems word well after my testing. Can I use this to check the SIM card status.?
Replies
Boosts
Views
Activity
Jun ’25
Reply to Audio issue on iPhone 15 pro (iOS18.5)
@darkpaw Thanks for the reply, but I face this issue in my code and I can replicate it in the Apple CallKit demo. So I ask Apple dev here for suggestions and when this issue will be fixed. As I know, the iOS 17 is ok and other iPhone without dynamic island is ok.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to The app will be wake up from killed status by silent notification or not?
Thanks for your info, very helpful. One point to be clear: How to define the debug case: "for example if you are debugging your app at the time via Xcode". Cable conntected? Open console app? Open Xcode connect device. I tested my App store build and installed the APNs profile in my device. (iPhone 12 pro max, iOS18.3) Then I can see the app has been waken up from manual killed status from this method. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool and the launchOptions like: Optional([__C.UIApplicationLaunchOptionsKey(_rawValue: UIApplicationLaunchOptionsRemoteNotificationKey): { action = StopRing; aps = { "content-available" = 1; }; event = "/restapi/v1.0/account/xxxx/extension/xxxx/stop-ring"; from = 101; fromName = Lxx; serverId = "10.74.13.129.TAM"; telephonySessionId = "s-98cdf84c5e474a80a671895c750a293a"; timestamp = "2021-04-23T09:14:11.971Z"; to = 101; }])
Replies
Boosts
Views
Activity
Feb ’25
Reply to AVAudioSession's "availableInputs" not update in time
yes, I'm doing so. but in the case I post above: When BT (Airpods pro 2) DISCONNECTTED: it will print like below when the route change notification comes, this is wrong. should not contains the "BluetoothHFP" at this time. So @Engineer you can have demo based on my code. availableInputs=[__C.AVAudioSessionPort(_rawValue: MicrophoneBuiltIn), __C.AVAudioSessionPort(_rawValue: BluetoothHFP)], currentRouteInputs=[], currentRouteOutputs=[__C.AVAudioSessionPort(_rawValue: Speaker)]
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to AVAudioSession's "availableInputs" not update in time
Thanks. @Engineer , I will check your info. But for now, my requirement is to create a button that can indicate the audio route state, eg: If no BT is connected, just a built-in and the speaker, Show a button with 2 states: normal(for build-in) and selected(Speaker). If has BT connected, tap the button will show the system "AVRoutePickerView" for user to choose a route. but now, I can't get the correct state when "user choose speaker when BT connected", at this time, when user tap the button, I need to show the "AVRoutePickerView", but the current route is speaker, I don't know if the BT is connected. Hope you can understand my requirements. thanks.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to AirPods Pro issue during a VoIP call,
We understand the importance of providing a focused sample project to reproduce the issue. However, this appears to be a rare and intermittent case, and we have not been able to reproduce it consistently in our testing environment. Here are the reproduction steps provided by the affected user: Make a VoIP call using our app. Switch the audio route from the built-in microphone to AirPods Pro (model: A2084, version: 6F21) during the call. Could you please provide further insight into the above questions?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Nov ’24