zoho / SalesIQ-Mobilisten-ReactNative

Your mobile app's ideal live chat partner. Power up your mobile App with the SalesIQ Mobilisten SDK for React-Native.
https://mobilisten.io/
9 stars 11 forks source link

Cannot show react-native Modal Notification Dialog if Chat Screen is in open state #32

Closed hungkoala closed 2 years ago

hungkoala commented 2 years ago

It looks like SalesIQ native chat dialog has a higher zIndex so it's always on the top.

This issue happen on iOS version only, the android version is working well

images

Rishabh-Raghunath commented 2 years ago

This needs to be handled with how the dialog or alert is presented or implemented in the app. The UI from Mobilisten is just presented in the standard way from the UI that is already visible.

If you are able to get the top/visible View controller in iOS and then present the dialog/alert over it, it should work correctly.

hungkoala commented 2 years ago

We are using react-native. Do you have any suggestion how to get top/visible View controller in iOS?

hungkoala commented 2 years ago

is there any function to close the chat app?

Rishabh-Raghunath commented 2 years ago

We are using react-native. Do you have any suggestion how to get top/visible View controller in iOS?

Presenting an alert from the visible view controller should be doable by creating a react-native native module to show alerts.

The module can expose a function that can be invoked from javascript to show an alert with the desired content. Although I am unsure if the same can be achieved purely using the available react-native javascript APIs.

Rishabh-Raghunath commented 2 years ago

is there any function to close the chat app?

An API to programmatically close Mobilisten UI is currently unavailable. We shall look into the feasibility and support the same in an upcoming release.

Rishabh-Raghunath commented 2 years ago

We are marking this issue as closed since this is not an issue in Mobilisten and since it has had no recent activity. As suggested earlier, creating a react-native native module to show alerts from the presented view controller could be a solution to achieving the desired behavior.

Please feel free to get back to us in case you have further queries. Thanks.