Closed RoshanNepal closed 1 year ago
Did you tried call openMessagingView()
after some time? In my case, works fine. (maybe dependent on network status/server)
Sometimes messages not showing, but any errors not occurs from SDKs. As you know, this library implemented React Native bridges only. Key features are SDKs function. (message load, showing and etc..)
Wipe your application data or if you logged in to Zendesk with login()
, try another user token.
To summarize, the following is the case:
openMessagingView()
after some time.Here's my implementation
import React from 'react';
import {Text, View, TouchableOpacity} from 'react-native';
import * as Zendesk from 'react-native-zendesk-messaging';
const App = () => {
React.useEffect(() => {
Zendesk.initialize({channelKey: '***'});
}, []);
const _onPress = () => {
try {
Zendesk.openMessagingView();
} catch (_) {
//
}
};
return (
<View>
<TouchableOpacity onPress={_onPress}>
<Text>Support</Text>
</TouchableOpacity>
</View>
);
};
export default App;
Still have same issue without any errors?
I tried to reproduce this situations, but works fine in my environments. (tested on real devices, emulators) Need more information for resolve this issue.
I would appreciate it if you could check native SDKs logs.
(Check below guides for enable SDKs log)
If still same issue occurs, report error log and reopen issue please.
Hi @RoshanNepal,
Be aware that Android and iOS have different channelKeys. They look familiar but are different. Confirm that your android key is correct. I hade the same issue :)
Works fine on iOS