Open dnelson-simplec opened 5 years ago
Hi Doug, that's a thorough explanation.
I've never used this plugin in production myself. I built it because someone needed it and for their purposes, it worked fine AFAIK. So I'm not sure I can be of much help here.
I appreciate the reply. Thank you
From: Eddy Verbruggen notifications@github.com Sent: Monday, July 29, 2019 8:54 AM To: EddyVerbruggen/nativescript-call nativescript-call@noreply.github.com Cc: Doug Nelson dnelson@simplec.com; Author author@noreply.github.com Subject: Re: [EddyVerbruggen/nativescript-call] Callkit - VOIP Push terminated app (#8)
Hi Doug, that's a thorough explanation.
I've never used this plugin in production myself. I built it because someone needed it and for their purposes, it worked fine AFAIK. So I'm not sure I can be of much help here.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/EddyVerbruggen/nativescript-call/issues/8?email_source=notifications&email_token=AA3JIB3DALMQWC7ZVXOSTLLQB3R5DA5CNFSM4IHSBGRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3ATNLY#issuecomment-515978927, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AA3JIBYEV6TRLWVME72HKBTQB3R5DANCNFSM4IHSBGRA.
We have a NS app that we have integrated callkit into using a custom cocoapod that is having terrible trouble with receiving calls when the app is terminated on <=(iphone 6). Even newer phones have issues if the app is terminated, the phone is locked, and it is not plugged in.
We confirmed that iOS watchdog is terminating the app because it is using too many CPU ticks before initiating callkit.
If we use the same pod with a non-NS app that just creates a hello world window/view-controller, it all works perfectly.
I have confirmed that starting Nativescript runtime and starting the entryModule are the bottleneck. If you take a fully functional NS app and update the main.m to use a hello world screen, VOIP push and callkit work great.
This lead us down the road of embedding NS "late" if the app is starting in background mode. I.e. when the call ends, try to embed NS in the hello world screen. The embedding samples just don't work for Angular. For non-Angular, NS won't embed if called after the rootviewcontroller didload. The sample projects are out of date, and I suspect the use case is not truly supported.
I'm curious if you have worked around these timing/loading issues? Or did you abandon callkit integration with NS? Based on your code, this plugin must have the same issue with watchdog.
thanks --doug