- edited description
FATAL: SelfApp nicht (mehr) initialisiert
Issue #106
new
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)
-
reporter - Log in to comment