Events.subscribe not working on Android emulator


#1

We have a simple publish/subscribe pair that works just fine when serving the app on a web browser. We are checking this through console logs. However, for further testing on devices, we are attempting to run the same thing through Android Studio, emulating a Nexus 5. Some of the messages we expect are showing as intended, but nothing included in any of our .subscribe listeners show their console logs within, much less run their functionality. Is there any certain reason we would be able to do this and see the effect on a browser launch rather than a device-emulated version?

Here is our publisher:

  this.events.publish("app:ready", true);

Here is our subscriber that never fires:

this.events.subscribe("app:ready", (data) => {
            console.log('in the subscriber');
        });

Thanks in advance!


#2

Hi, did you manage to find an answer?