React Native - using the Android SDK

Hi community!

I’m having some trouble integrating the Android SDK with my React Native app.

I’m able to inject an access token using the Cloud SDK and then register a device using the Device Setup Library. However, once setup has finished, I can’t seem to hand back control to RN / return to the “main activity”.

In I’m initialising the setup library:

  public void onCreate() {
    SoLoader.init(this, /* native exopackage */ false);
    // Initialize the Particle Device Setup Library
    ParticleDeviceSetupLibrary.init(this.getApplicationContext(), MainActivity.class);

Then in my native module I call:


I really don’t have much experience writing native code, so any pointers would be much appreciated!

Let me ping someone that might be able to help, @rickkas7 or @ParticleD are you able to assist?

I’m handling a support ticket that Abigail filed a few days ago about this, and will update this thread when we have some kind of resolution.



1 Like

For anyone else struggling with this - we have a discussion thread on this GitHub issue.