livechat / chat-window-android

LiveChat mobile chat window for Android
https://developers.livechatinc.com/mobile/android/
MIT License
23 stars 28 forks source link

A progress Dialog Is loading no chat window is showing #16

Closed AjayM17 closed 4 years ago

AjayM17 commented 5 years ago

java code

public class MainActivity extends AppCompatActivity implements ChatWindowView.ChatWindowEventsListener { ChatWindowView emmbeddedChatWindow;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

emmbeddedChatWindow = findViewById(R.id.embedded_chat_window);

    startEmmbeddedChat();
}

public void startEmmbeddedChat() {
    if (!emmbeddedChatWindow.isInitialized()) {
        ChatWindowConfiguration configuration = new ChatWindowConfiguration(
                "10111697",
                "0",
                "Ajay",
                "ajaymandrawal17@gmail.com",
               null
        );
        emmbeddedChatWindow.setUpWindow(configuration);
        emmbeddedChatWindow.setUpListener(this);
        emmbeddedChatWindow.initialize();
    }
    emmbeddedChatWindow.showChatWindow();
}

@Override
public void onChatWindowVisibilityChanged(boolean b) {

}

@Override
public void onNewMessage(NewMessageModel newMessageModel, boolean b) {

}

@Override
public void onStartFilePickerActivity(Intent intent, int i) {

}

@Override
public boolean handleUri(Uri uri) {
    return false;
}

xml

<com.livechatinc.inappchat.ChatWindowView android:id="@+id/embedded_chat_window" android:layout_width="match_parent" android:layout_height="400dp"/>

AjayM17 commented 5 years ago

when I started app progress dialog is showing no chat window is showing

nomyzs commented 4 years ago

Hey @AjayM17

Is this still happening for you? I couldn't reproduce your problem

nomyzs commented 4 years ago

Closing due to inactivity. Please feel free to open another issue if experiencing any problems