Giter VIP home page Giter VIP logo

accelerator-textchat-android's People

Contributors

albertoacn avatar igorwojda avatar marinaserranomontes avatar michaeljolley avatar panoramicrum avatar raulkg avatar robjperez avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accelerator-textchat-android's Issues

Wrong parameters sequence in ReadMe document vs actual Constructor

Expected behavior

The ReadMe document says while initializing OTAcceleratorSession object pass parameters in this sequence

OTAcceleratorSession mSession = new OTAcceleratorSession (context, sessionId, apikey);

Actual behavior

While the actual defination requires the parameters to be passed in this is sequence

OTAcceleratorSession mSession = new OTAcceleratorSession(context, apiKey, sessionId) ;

The position of apiKey and sessionId parameters is swapped. It wasted my entire day.

...

TextChat Adapter should use DiffUtils to render view

New issue checklist

General information

  • Library version(s):
  • iOS/Android/Browser version(s):
  • Devices/Simulators/Machine affected:
  • Reproducible in the demo project? (Yes/No):
  • Related issues:

Bug report

Currently, we are using notifyadatper() method to update recyclerview which is prone to destroy existing rendered views and recreate all the views.

Expected behavior

The accelerator textchat should render only needed views

Actual behavior

Right now, we are using notify adapter to update and render recycler view

Steps to reproduce

...

Crash log? Screenshots? Videos? Sample project?

...

Question or Feature Request

This is Enhancement

Manage session from TextChatFragment

New issue checklist

General information

  • Library version(s): 1.0.2
  • iOS/Android/Browser version(s): Android
  • Devices/Simulators/Machine affected:
  • Reproducible in the demo project? (Yes/No): Yes
  • Related issues:

Bug report

The session in the constructor is not connected. Manage a disconnected session from the accelerator textchat

Expected behavior

The accelerator textchat should detect if the session is connected or not, and it should manage it.

Actual behavior

Right now, we are supposing the session is connected from the app before to start sending/receiving messages.

Steps to reproduce

...

Crash log? Screenshots? Videos? Sample project?

...

Question or Feature Request

...

Unable to Send Text message or Receive Text message

D/OTAcceleratorSession: internalSendSignal: text-chat
D/OTAcceleratorSession: Dispatching signal: text-chat with: {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979}
dispatchSignal: No global listeners registered for: text-chat
Starting thread to process: text-chat : {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979}
D/OTAcceleratorSession: Dispatching signal: text-chat : {"sender":{"id":"7f8cd9f6-e179-43ca-be3a-5485ab0098e3","alias":"Tokboxer"},"text":"High","sentOn":1599823638979} on thread: 6709
I/text-chat-message: status: SENT_MESSAGE
D/Fragment: onNewSentMessage
I/VideoChatActivity: New sent message
I/Fragment: New message High is ready to be added.

D/OTAcceleratorSession: Dispatching signal: msg with: sadas
D/OTAcceleratorSession: dispatchSignal: No global listeners registered for: msg
dispatchSignal: No listeners registered for: msg

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

New issue checklist

General information

  • Library version(s):
    implementation 'com.opentok.android:opentok-accelerator-core:1.0.21'
    implementation 'com.opentok.android:opentok-accelerator-textchat:1.0.4'
  • iOS/Android/Browser version(s): Android 7, probably others
  • Devices/Simulators/Machine affected: Galaxy S7
  • Reproducible in the demo project? (Yes/No): (not tried)
  • Related issues:

Bug report

Getting a crash report from Crashlytics
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference

Expected behavior

Open text chat and use normally

Actual behavior

Crash

Steps to reproduce

unk. but code does not null-check the getContext() call which can return null in certain situations.

Crash log? Screenshots? Videos? Sample project?

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
at com.tokbox.android.accpack.textchat.TextChatFragment.init(TextChatFragment.java:345)
at net.theretrocompany.android.retrobeauty.ConsultationSession$3.onConnected(ConsultationSession.java:516)
at net.theretrocompany.android.retrobeauty.ConsultationSession$3.onConnected(ConsultationSession.java:502)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener$2.run(PausableBasicListener.java:62)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener$1.run(PausableBasicListener.java:48)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener.runUIListenerTask(PausableBasicListener.java:53)
at com.tokbox.android.otsdkwrapper.listeners.PausableBasicListener.onConnected(PausableBasicListener.java:59)
at com.tokbox.android.otsdkwrapper.wrapper.OTWrapper$1.onConnected(OTWrapper.java:1074)
at com.tokbox.android.otsdkwrapper.wrapper.OTAcceleratorSession.onConnected(OTAcceleratorSession.java:312)
at com.opentok.android.Session$3.run(Session.java:1461)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6688)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)

Question or Feature Request

...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.