android - Twilio intent EXTRA Always null -


i`m using twilio client sdk. call between client;

demo works fine. in project intent`s extra_data allways null. here pending intent:

intent intent = new intent(activity, twiliobroadcaster.class);                 intent.putextra(callactivity.is_out_call, false);                 pendingintent pendingintent = pendingintent.getbroadcast(activity, 0, intent, pendingintent.flag_update_current);                 clientdevice.setincomingintent(pendingintent); 

and in broadcastreceiver:

device device = intent.getparcelableextra(device.extra_device);             connection incomingconnection = intent.getparcelableextra(device.extra_connection);             log.e("test", "hasdevice = "+intent.hasextra(device.extra_device));             log.e("test", "hasconnection = "+intent.hasextra(device.extra_connection));             if (incomingconnection == null && device == null) {                 return;             }              pendingconnection = incomingconnection;             pendingconnection.setconnectionlistener(this);             binding.greenbtn.setvisibility(isoutcall? view.gone:view.visible); 

also registered broadcastreceiver manifest.

device , connection data null. think twilio device automatically put data intent.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -