FATAL: SelfApp nicht (mehr) initialisiert

Issue #106 new
Enrico Schultz created an issue

Eine App kann einer anderen App im Event onAppStart kein AppEvent senden.

Die App, die die Nachricht versendet:

'use strict';

var App = new (function() {

    this.onAppStart = function() {
        var appInstance = KnuddelsServer.getAppAccess().getRunningAppInChannel('knuddelsDEV.<id>.<name>');
        appInstance.sendAppEvent('foo', {});
    }
})();

Und die App, die die Nachricht empfängt:

'use strict';

var App = new (function() {

    this.onAppEventReceived = function(appInstance, type, data) {
    }
})();

Workaround: den Aufruf innerhalb von onAppStart durch setTimeout() wrappen.

Comments (1)

  1. Log in to comment