Client explicitly never does the Audio activate session: Looks OS on behalf of the client and expects the deactivation as well and also unable to find the root cause of the audio session activation.
Please find the detailed use case for the time the issue occurred:
Application is in suspended and received PTT push notification:
2024-09-03 16:18:43.258467 +0530 default AT&T EPTT <ALA_SIGNAL>: [OS-CCF] -[PushToTalkInterface incomingPushResultForChannelManager:channelUUID:pushPayload:]
Part of PTT call - didActivateAudioSession activated
2024-09-03 16:18:43.570734 +0530 default AT&T EPTT <ALA_SIGNAL>: Enter -[PushNotificationManager didActivateAudioSession:]
Due to internal settings/constraint, client ended the call by setting setActiveRemoteParticipant to null
2024-09-03 16:18:43.601432 +0530 default AT&T EPTT <ALA_SIGNAL>: Enter -[PushNotificationManager setActiveRemoteParticipant:useCallerThread:image:] [talkerName = (null)]
2024-09-03 16:18:43.603754 +0530 default AT&T EPTT Enter -[KN_CallStateMachine cleanUp] [current state = STATE_CALL_DISCONNECTED]
2024-09-03 16:18:43.606457 +0530 default AT&T EPTT Provider <CXXPCChannelProvider: 0x301ed4180> reports channel with UUID 46FA76CB-A956-4FDF-9DC1-A435C8576D4E ended an incoming transmission with reason 0
Part of PTT call end - didDeactivateAudioSession deactivated
2024-09-03 16:18:43.948898 +0530 default AT&T EPTT <ALA_SIGNAL>: Enter -[PushNotificationManager didDeactivateAudioSession:]
2024-09-03 16:18:43.410607 +0530 default callservicesd AVAudioSession_iOS.mm:2774 Deactivated session 0x6800c
2024-09-03 16:18:43.948975 +0530 error runningboardd [app<com.msikodiak.eptt(35408D99-1B85-4B85-A639-D03A7D98DE18)>:282] client not entitled to get limitationsForInstance: <Error Domain=RBSServiceErrorDomain Code=1 "Client not entitled" UserInfo={RBSEntitlement=com.apple.runningboard.process-state, NSLocalizedFailureReason=Client not entitled, RBSPermanent=false}>
And later in BG , received the Audio route change and seen audio activate session for the client, please let us what is causing the activate session also suppose to be deactivated by OS since it is activate behalf of client:
2024-09-03 16:18:47.351851 +0530 default AT&T EPTT [IOS] audioRouteChangeEventNotification Exit
2024-09-03 16:18:47.352385 +0530 default AT&T EPTT AVAudioSession_iOS.mm:2654 Activated session 0x6800c
Post
Replies
Boosts
Views
Activity
Hello
Thanks the above review agreement was the reason for app identifier register problem, Its resolved.
Tried sample application just to setupChannelManager and joinTheChannel, but for some reason PTChannelManager initialised successfully but with NO channelUUID
and Error param also nil
Xcode Configuration wise, we have done the following things,
New PushToTalk Capability added for our application-identifier [ Apple Dev account]
New PushToTalk BackgroundMode is enabled
APNS capability added
Microphone Permission entry added in pList
We have the below required entitlements
a> com.apple.developer.push-to-talk
b> aps-environmentdevelopment
Could you please help here and see whether anything we are missing which is resulting in NULL channelUUID
within didFinishLaunchingWithOptions delegate method
[PTChannelManager channelManagerWithDelegate:self restorationDelegate:self completionHandler:^(PTChannelManager * _Nullable manager, NSError * _Nullable error)
{
NSLog(@"Active Channel ID = %@", [[manager activeChannelUUID] description]);
}];
Hello
Tried sample application just to setupChannelManager and joinTheChannel, but for some reason PTChannelManager initialised successfully but with NO channelUUID
Xcode Configuration wise, we have done the following things,
New PushToTalk Capability added for our application-identifier [ Apple Dev account]
New PushToTalk BackgroundMode is enabled
APNS capability added
Microphone Permission entry added in pList
We have the below required entitlements
a> com.apple.developer.push-to-talk
b> aps-environmentdevelopment
Could you please help here and see whether anything we are missing which is resulting in NULL channelUUID
within didFinishLaunchingWithOptions method
[PTChannelManager channelManagerWithDelegate:self restorationDelegate:self completionHandler:^(PTChannelManager * _Nullable manager, NSError * _Nullable error)
{
NSLog(@"Active Channel ID = %@", [[manager activeChannelUUID] description]);
}
}];
Hello
Thank you, i will refer the given links