Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working #7

Closed
TeodorKolev opened this issue Jan 19, 2018 · 4 comments
Closed

Plugin not working #7

TeodorKolev opened this issue Jan 19, 2018 · 4 comments

Comments

@TeodorKolev
Copy link

TeodorKolev commented Jan 19, 2018

Ionic 4.4.0. I have install plugin and add this code

this.platform.registerBackButtonAction(() => {
    console.log('test');
    this.appMinimize.minimize();
});

App did not minimize, neither console output is fired.

@tomloprod
Copy link
Owner

Try without registerBackButtonAction(). The plugin should work.

@zinzinday
Copy link

method registerBackButtonAction working but AppMinimize not work

@Thomas0921
Copy link

But I think mostly this plugin is used to make back button has home button behavior. Need this to work too

(Object() is not a function)

@Thomas0921
Copy link

Thomas0921 commented Apr 18, 2019

Update: I got it working after trying the post written by you at Ionic Forum

No working method (Stated in Ionic Native Documentation)
this.appMinimize.minimize();

Working method
(<any>window).plugins.appMinimize.minimize();

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

No branches or pull requests

4 participants