linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] App is crashing on SDK version 5.4.0 <> iOS ve


From: Peter Van Dender
Subject: Re: [Linphone-developers] App is crashing on SDK version 5.4.0 <> iOS version
Date: Wed, 10 Jul 2024 13:59:39 +0000

Hi Anil,


Be very careful here.

Their support is expensive and very limited in time. (3 months)


I learned it the hard way. :-/ 


Kind regards,

Peter


Van: linphone-developers-bounces+pvd=tenera-it.be@nongnu.org <linphone-developers-bounces+pvd=tenera-it.be@nongnu.org> namens Julien Favre-Bulle <julien.fb@belledonne-communications.com>
Verzonden: maandag 8 juli 2024 10:55:33
Aan: linphone-developers@nongnu.org
CC: anil@mobulous.com; alfred@callju.com; 'Akshit Kumar'
Onderwerp: Re: [Linphone-developers] App is crashing on SDK version 5.4.0 <> iOS version
 

Dear Anil,

 

This mailing list is about technical discussions about Linphone, Liblinphone, mediastreamer2, ortp… This is not an official support channel.

 

The responses are provided by the community and, on a best effort basis, by some Belledonne Communications’ engineers working on Linphone and its related projects.

 

If you are looking for support from us, please contact me and I will get back to you outside this mailing list with our different support plans and their related fees.

 

Best regards,

 

Julien Favre-Bulle
Business Developer & Project Manager

+33 (0)9 52 63 65 05
julien.fb@belledonne-communications.com

 

Discover our solutions in 3 minutes!

 

Belledonne Communications, the company behind the Linphone project

https://www.linphone.org

 

 

De : linphone-developers-bounces+julien.fb=belledonne-communications.com@nongnu.org <linphone-developers-bounces+julien.fb=belledonne-communications.com@nongnu.org> De la part de anil--- via Linphone-developers
Envoyé : samedi 6 juillet 2024 10:30
À : Linphone-developers@nongnu.org
Cc : anil@mobulous.com; alfred@callju.com; 'Akshit Kumar' <akshit.kumar@mobulous.com>
Objet : Re: [Linphone-developers] App is crashing on SDK version 5.4.0 <> iOS version
Importance : Haute

 

Hello Support,

 

Can you please help us in the asked questions as we emailed on July 02, 2024.

 

Thanks,

Anil

 

From: anil@mobulous.com <anil@mobulous.com>
Sent: Tuesday, July 2, 2024 1:02 PM
To: 'Linphone-developers@nongnu.org' <Linphone-developers@nongnu.org>
Cc: 'alfred@callju.com' <alfred@callju.com>; 'Akshit Kumar' <akshit.kumar@mobulous.com>
Subject: App is crashing on SDK version 5.4.0 <> iOS version
Importance: High

 

Hello Support,

 

We are using the SDK version 5.4.0 for the Linephone i.e. 5.4.0-alpha.236+02c3fff7 , but the app is crashing when it is in background using VOIP Push.

 

We saw on your blogs that this has been a issue raised by some developers.

 

Here is the code which is written using Objective C for the same, it would be great if you can help us asap on the resolution for this.

We have tried using multiple methods and available documentation online but we were not able to find a solution for the same.

 

(void)setupPushKit {

    PKPushRegistry *pushRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()];

    pushRegistry.delegate = self;

    pushRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP];

 

}

 

 

#pragma mark - PKPushRegistryDelegate

 

- (void)pushRegistry:(PKPushRegistry )registry didUpdatePushCredentials:(PKPushCredentials )pushCredentials forType:(PKPushType)type {

    NSString *deviceToken = [pushCredentials.token description];

    dispatch_async(dispatch_get_main_queue(), ^{

        linphone_core_did_register_for_remote_push(LC, (__bridge void*)pushCredentials.token);

        NSUserDefaults *myuserdefaults = [NSUserDefaults standardUserDefaults];

        [myuserdefaults setObject:deviceToken forKey:@"deviceToken"];

    });

    NSLog(@"VoIP Token: %@", deviceToken);

}

 

- (void)pushRegistry:(PKPushRegistry *)registry didInvalidatePushTokenForType:(PKPushType)type {

    NSLog(@"VoIP Token invalidated");

}

 

 

- (void)pushRegistry:(PKPushRegistry )registry didReceiveIncomingPushWithPayload:(PKPushPayload )payload forType:(PKPushType)type withCompletionHandler:(void (^)(void))completion {

  [LinphoneManager.instance launchLinphoneCore];

        [LinphoneManager.instance startLinphoneCore];

        linphone_core_refresh_registers(LC);

}

 

Thanks,

Anil

www.mobulous.com

 

 

 

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]