When the app is open and the pushtotalk notification is sent to the app the app calls following functions
func incomingPushResult(channelManager: PTChannelManager, channelUUID: UUID, pushPayload: [String : Any]) -> PTPushResult {
func channelManager(_ channelManager: PTChannelManager, didActivate audioSession: AVAudioSession) {
Once the app goes into background mode only pt 1 function is getting called and not pt 2 function. Could you pls clarify how to resolve this issue. Also i get error sometimes
2023-05-10 07:47:55.655278+0530 bhnonlineazan[674:48861] [connection] nw_read_request_report [C3] Receive failed with error "Socket is not connected"
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, we are unable to use the ios push to talk framework using cloud messaging. it says that Error: Invalid [apns-push-type] set for apns platform. IOS manual says that the push type to be set to pushtotalk. but thsi s not allowed in
messaging().send(message)
const message = {
notification: {
title: 'test'
},
apns: {
headers: {
'apns-push-type': 'pushtotalk',
'apns-topic': xxx.xxx.xxx.voip-ptt',
'apns-priority' : '10',
'apns-expiration' : '0'
},
payload: {
aps: {
'mutable-content': 1
}
},
fcm_options: {
}
},
webpush: {
headers: {
}
},
topic: topicval