Navigating to an external link from an ionic 4 app makes the hardware back button close the app where there is navigation history? - ionic-framework

Navigate to an external link or display an interstitial Ad (AdMob) and then return to the app by clicking on the hardware back button. At this stage where there are pages in the history (navigation stack), clicking on the hardware back button will cause the app to close! Knowing that I had tried to register to the back button by:
this.platform.backbutton.subscribe(()=>{
this.navCtrl.pop();
// Also tried: this.navCtrl.back();
});
But it is still exiting the app!
Any idea about how to solve this?!

Actually, I had realized that navigating to an external link from the app and returning to it will not cause hardware back button issues, but the problem was that I am displaying the AdMob banner at top of the screen, and when I place it at the bottom (default position) the hardware back button is stable and works as expected even when navigating from the app to an external link and then returning back! So, I kept the banner at bottom where I noticed that positioning banner at bottom was more elegant (at least to my app).
It seems that this is one of the issues in the AdMob plugin, where I had seen other issues about the ionic AdMob plugin without solutions!

Related

Full page view - Issues with Auto-fill code - Flutter

In my flutter app, I'm implementing a full page view using -
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
Now, It works just fine until I reach a page in the app that uses PinCodeTextField. In that page, a user can input the received OTP.
Now, the issue is that as soon as the page is opened, "Auto-fill code from Messages" appears and it brings back the notification bar as well as the bottom menu bar.
I have not implemented this feature and looks like somehow It has come on its own. Though, it is a nice feature to have, I really don't want it to mess up my app's full page view. Not until I restart the app, it goes back to full page view but again whenever I reach to a page with PinCodeTextField, that popup appears and messes things up.
Now, how do I force my app to go back to full page view ? If that is not possible, how do I stop Auto-fill code to keep coming on my screen on such pages ?? Kindly help.

Why does Flutter show another page in the stack before showing the actual page on Back event

I have built a functioning flutter app using Navigator 2.0 API and RouterDelegate. All the navigation works fine but the problem is on the back event. On pressing back either from the app bar or from the device button, the top page does pop but the page that is 2 layers deep in the stack is displayed for a fraction of second before the desired page is displayed.
Like in the attached image, when going back from ArchivedChatThread, Bots is displayed for few milliseconds and then another page is shown. Here, the stack is also not proper as there should be one page between Bots and ArchivedChatThread i.e ArchivedChats.
I tried a lot of different things but am unable to find a solution as this is my first flutter app and Navigator 2.0 being a relatively new and complex concept.
image
Any kind of help is appreciated. Thanks!

Cordova: In app browser issue on iPhone - black bar grows

I am working on iPhone app using Phonegap.
I have used in app browser functionality in my app. Though it works fine but gives following issue.
I have used.
window.open('http://www.yahoo.com','_blank','location=yes');
Issue is:
when I click to open webpage in app browser with Done at the bottom, it opens the webpage successfully, when I click Done and go back a black bar appears at the bottom of the screen that grows each time I use in app browser.
How to fix this issue?

Issue with SAPUI5 SplitApp when emulated on mobile device using Google Chrome

The splitApp loads master and detail pages on initial load on desktop and on tab as normal but when i try to emulate it on any phone like iphone 4,5,6 or nexus in chrome split app shows only master page on initial load instead of detail page.I tried all three modes of splitApp but does not work well with phone.
And also when i make my detail page to show nav button the default navigation button that comes with splitApp to switch to master from detail does not appear.
Regards,
Ajaay Krishna
That is the way a 'SplitApp' behaves on a mobile device.
As there isn't enough screen space on a mobile device to display both the 'Master' and the 'Detail', as you can, say, on a desktop or a tablet, the expected behaviour on a mobile device is to first display the 'Master' list and then on navigation, display the 'Detail'. So there isn't anything wrong there.
As for the issue with the back navigation button, please post a code snippet to further elaborate..

Admob's Adchoices to open in Safari instead of a webview

I am guessing this is a new type of ad for Admob.
Before, every time I click an ad returned by Admob, it opens the app store or a link in safari. But now, if I click on an ad that has the blue arrow on the right, it just shows a webview with the link. I am wondering if this can be avoided. I want the link to directly open in safari whenever I click the blue arrow. I noticed that the number of clicks for my ads have significantly decreased since this kind of ad appeared. So I'm thinking this may be related to the ad not opening in a browser.
Thank you very much for your help.