-
-
Save shrekuu/1d0ac923a322f5296a778d3d5c6a9ac9 to your computer and use it in GitHub Desktop.
@mansur1020 Same problem
Hi @mansur1020 and @liyou44 , I updated the code. Please try again. :)
Hi, thanks for sharing, do i have import this provider on every single page or just on the app page?
How can use someone help ? i import providers.
@lAndresul Hi, we used tab layout, so we imported this provider in the root tab components. When users enter the root tab pages, I call registerDoublePressToExitApp('a-page-name')
method, when users leave these pages, I call unregister()
to disable this functionality and give the back button back to ionic. Basically you need to import this provider on pages where you want to do this double press back button to exit app
thing. The registerPressToFlipCard()
method was part of our project, you can omit that.
Hi shrekuu
Thanks for the source code here.
I used the same code in my app, when i deploy in android device for test its working as expected but when i build my app with release mode and doing sing APK file. The alerts message not prompting. I am not able to find the issue, can put light on it.
Thanks in advance.