leegeunhyeok / react-native-zendesk-messaging

🗣️ Zendesk messaging SDK for React Native
https://www.npmjs.com/package/react-native-zendesk-messaging
MIT License
36 stars 10 forks source link

Messages not showing on Android #1

Closed RoshanNepal closed 1 year ago

RoshanNepal commented 1 year ago

Works fine on iOS

IMG_20230123_145336 IMG_20230123_150107

leegeunhyeok commented 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:

RoshanNepal commented 1 year ago

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;
leegeunhyeok commented 1 year ago

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.

vinitsood commented 1 year ago

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 :)