I can't open MessagingActivity in different process. | Community
Skip to main content

I can't open MessagingActivity in different process.

  • April 4, 2022
  • 4 replies
  • 0 views

Frank15
MessagingActivity.builder()
                        .withEngines(ChatEngine.engine())
                        .show(context);


I start the MessagingActivity with activity which is not main process , it's mean that My activity has  "android:process= :test " setting in AndroidManifest.xml , is always fail to start it.

But the main process always success.

How can I build MessagingActivity in different process activity?

4 replies

Frank15
  • Author
  • April 6, 2022

We found is fail at 

List<Engine> engines = messagingConfiguration.getEngines();
Logger.e("MessagingActivity", "No Engines found in MessagingConfiguration. Please use MessagingActivity.builder()", new Object[0]);

Is it any solution would help us to get the correct engines from different process activity to start it. thanks.


Eric27
  • April 13, 2022
Hey Frank,

Apologies, I'm having a hard time understanding what you're trying to accomplish by building the MessagingActivity in a different process. Would you be able to give us more context on what you're trying to do?

Thanks!

Frank15
  • Author
  • April 18, 2022

It's sorry for my bad English.
Simply put, I found that we cannot start the MessagingActivity correctly from the Activity is not App default process.

MessagingActivity.builder()
                        .withEngines(ChatEngine.engine())
                        .show(context);

It will happen that MessagingActivity cannot find the engine when onCreate.


Greg29
  • April 18, 2022

Hi Frank! Is it possible that you have the other instance running at the same time? We don't allow for that, as is outlined here