react native ui not loaded properly during VOIP call

304 views Asked by At

so i'm currently work on app that implement callback voip call on ios, we use RNCallKeep and RNVoipPushNotification to make it happen. we manage to handle for all state including when app in foreground and background but the thing is when app is on killed state and voip call came in to device after i tapped answer or reject app manage to open but the UI became very weird kinda unstyle when on home screen like below evidence

here the code;

AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
--------

[RNCallKeep setup:@{
    @"appName": @"appname",
    @"imageName": @"applogo.png",
    @"maximumCallGroups": @1,
    @"maximumCallsPerCallGroup": @1,
    @"supportsVideo": @YES,
  }];
--------

}

and on js side

App.js
class App extends React.Component {
    constructor(props) {
        super(props);

            RNCallKeep.addEventListener('answerCall', ({ callUUID }) => {
                // action here
            });

            RNCallKeep.addEventListener('endCall', ({ callUUID }) => {
                // action here
            });

            RNCallKeep.addEventListener('didLoadWithEvents', this.onDidLoadWithNativeEvents);
    }
}

can someone please help me what did i do wrong? i've read much about this but still cannot manage to solve this for few days now. Thanks

0

There are 0 answers