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

Hardware back not working after displaying ads #112

Open
prantikv opened this issue Oct 8, 2017 · 4 comments
Open

Hardware back not working after displaying ads #112

prantikv opened this issue Oct 8, 2017 · 4 comments
Labels

Comments

@prantikv
Copy link

prantikv commented Oct 8, 2017

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x ] 3.x
[ ] 4.x

I'm submitting a ... (check one with "x")
[ x] bug report
[ ] feature request

Current behavior:
After registering the hardware back then if ads are displayed, pressing the hardware back exits the app and does not bind to the normal behaviour

Expected behavior:
Hardware back should execute the registered fuctions

Steps to reproduce:

  1. Create a new app with any template add.
  2. Add the admob-free plugin
  3. Register hardwarback to log something(Not to exit).
  4. Display ads.
  5. Press hardware back

Related code:

In the constructor of app.component.ts register the back handler

        platform.registerBackButtonAction(() => {
        console.log("Back Pressed");
      });

Display banner ads or interstitals then without pressing anything in the app press the back button.
The app will exit. We are not exiting the app in our handler.

APP REPO HERE.

A related issue can be seen here.

Ionic Info:

cli packages: (C:\Users\prantikv\AppData\Roaming\npm\node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 3.0.0
    Cordova Platforms  : android 6.0.0
    Ionic Framework    : ionic-angular 3.7.1

System:

    Android SDK Tools : 25.2.5
    Node              : v6.11.3
    npm               : 5.4.2
    OS                : Windows 10

Misc:

    backend : pro
@prantikv
Copy link
Author

This is not an issue with Ionic Framework as clarified in this issue . This clearly means the plugin is at fault.

Kindly solve this issue at the earliest.

@prantikv
Copy link
Author

prantikv commented Oct 14, 2017

@ratson This may be relating to this issue here.

@ratson ratson added the ionic label Nov 20, 2017
@ratson
Copy link
Owner

ratson commented Nov 20, 2017

@prantikv You repo does not showing any ads and the back button works as expected. Here is the repo I am testing.

@erperejildo
Copy link

This issue is not related to Ionic. Facing issue with latest version (0.14)

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

No branches or pull requests

3 participants