Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Reopen Ar-world after hide #11

Open
FredrikHa opened this issue Oct 14, 2016 · 9 comments
Open

Reopen Ar-world after hide #11

FredrikHa opened this issue Oct 14, 2016 · 9 comments

Comments

@FredrikHa
Copy link

FredrikHa commented Oct 14, 2016

It's me again!
After calling 'Ionicitude.hide();', it won't open the Ar-world. This is only happening on Android.

Ionicitude.init()
  .then(function () {
    Ionicitude.addAction(close);
  })
  .catch(function (error) {
  });
  function close() {
    Ionicitude.hide();
  }
});

When I run the command 'launcAr('world')' this is the console in android studio:
D/ViewRootImpl: ViewPostImeInputStage processPointer 0
D/ViewRootImpl: ViewPostImeInputStage processPointer 1
I/chromium: [INFO:CONSOLE(340)] "launch", source: file:///android_asset/www/lib/ionicitude/dist/ionicitude.js (340)

First launch is running perfectly!

@Tazaf
Copy link
Owner

Tazaf commented Oct 14, 2016

Well...
That's an interesting one.
I'm going to have to run some tests but I won't be able to help you on this one for a few days: I'm on vacation, away from my work computer.

Anyway, normally, to "relaunch" a previously hidden world, you should call Ionicitude.show() rather than lauching it again.

@FredrikHa
Copy link
Author

FredrikHa commented Oct 19, 2016

Did you understand this issue?
I also have an issue with the Ionicitude.close() function. It does not respond.

Ionicitude.hide() works!

Console says so:

2016-10-19 13:25:12.957826 LEVENT[20190:5972772] architectsdk://close [object Object]
2016-10-19 13:25:12.957877 LEVENT[20190:5972772] Error in Success callbackId: WikitudePlugin1532793119 : Function required as first argument!

@Giusti
Copy link

Giusti commented Mar 10, 2017

I have the same issues when using Ionicitude.close()
I get "Function required as first argument!" at file: lib/ionic/js/ionic.bundle.js (26794)
and when I call show() after hide() nothing happens

@Tazaf
Copy link
Owner

Tazaf commented Mar 10, 2017

Hi!

Could you give me a little more detail regarding the context of your Ionicitude.close() call?

This method of the service does nothing more than calling the Wikitude's native close() function.
So in all honesty, I have no idea what's causing this issue ^^
Especially with an error message like the one you have, since close() doesn't require any argument.

@Giusti
Copy link

Giusti commented Mar 10, 2017

Mh not really funny thing is when I call WikitudePlugin.close() it works not sure whats the problem here

@Tazaf
Copy link
Owner

Tazaf commented Mar 11, 2017

Do you call Ionicitude.close () inside an action, like this?

Ionicitude.addAction (myAction);

function myAction () {
  Ionicitude.close ();
}

If it's the case, try using the service argument instead, that is passed to an action when it is called:

Ionicitude.addAction (myAction);

function myAction (service) {
  service.close ();
}

@Giusti
Copy link

Giusti commented Mar 11, 2017

Gonna try it on monday thank You very much

@Giusti
Copy link

Giusti commented Mar 11, 2017

Did You already Experiment with the wikitude Plugin API?

@Tazaf
Copy link
Owner

Tazaf commented Mar 11, 2017

Hum... not sure to understand what you mean by that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants