• Hey guys,
    long time lurker, first time poster here.
    So i'm having trouble understanding / fixing this.
    I created my own app.js, got everything to work that this is my default app.
    The app works fine when i launch it from the WebIDE, however, when installing it from the apploader and then "reloading", i suddenly have code duplicated in ram, therefore functions being called twice.
    So e.g.
    in ram it is like this:
    Bangle.on("accel", onAccel);
    Bangle.on("accel", onAccel);

    when launching from the WebIDE, this duplication is not present.
    What am i missing? How do i get a "clean" launch after installing?

    Thanks in advance.

    edit: when installing from the webide after the installation from the apploader the console prints:
    Uncaught Storage Updated!

    might be related?

  • The app works fine when i launch it from the WebIDE,

    How do you upload from web IDE, to ram or storage?

    however, when installing it from the apploader and then "reloading", i suddenly have code duplicated in ram, therefore functions being called twice.
    So e.g.
    in ram it is like this:
    Bangle.on("accel", onAccel);
    Bangle.on("accel", onAccel);

    Where/how do you look and see this? In the web IDE left console field? Does it happen immediately on first launch or after an extra reload? Can the code be duplicated more than twice so you have e.g. three instances of the accel listener?

About

Avatar for sfnk @sfnk started