Skip to content

Callkit - VOIP Push terminated app #8

Description

@dnelson-simplec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions