How to add back and refresh button to PWA title bar - progressive-web-apps

I'm writing a PWA app. What I want is back and refresh button on title bar. But I got nothing.

The display property in the manifest file must be either "fullscreen" or "standalone". In both cases, the back and refresh buttons won't be shown.
Set the display property as "minimal-ui" or "browser", the back and refresh button will be shown.
Note: Clear cache/Uninstall the PWA for changes to take place

Related

How to add custom action on back button in apple WatchKit app in swift?

In our Apple Watch swift application we have two controllers(Login and dashboard controller). After login user will land to dashboard page and after clicking on back button it is again landing to login page.
So, my requirement is that after clicking on back button on dashboard it should stay on same dashboard page.
So, How can I prevent back action and assign custom action once back button clicked in apple WatchKit application?
I think what you might be looking for is to call reloadRootPageControllers on WKInterfaceController:
https://developer.apple.com/documentation/watchkit/wkinterfacecontroller/2868441-reloadrootpagecontrollers
after successful login, and re-initialise your app's UI with the dashboard screen. This makes it impossible to go back to the login screen, and there will be no back button as the dashboard becomes the new root level app screen.
Hope this helps.

How to disable the back button on a pushed page?

In my page i use this:
this.navCtrl.push(HomePage);
Automatically generated back button
but a back button will automatically be added to the pushed view, how to use default bar?
If you do not want the Back button to be shown as an option you could simply hide it on the page in which you are navigating to.
<ion-navbar hideBackButton="true"></ion-navbar>
More info on Ionic NavBar here.
If you don't want to have the back button then you can set it as a root page using "setRoot()" instead of push() like this,
this.navCtrl.setRoot(HomePage);
just try this it work great for me it will be automatically deactivate back button and show Menu toggle
this.childNavCtrl.setRoot(HomePage);

Using back button doesn't clear old content

I'm using gwtp and I have some troubles with the browsers back button.
My DefaultPlace is a login page (root content). If the the login is correct, it directs you to a welcome page (MainPagePresenter) with a menu bar. This menu bar is always visible when going through its items. Clicking on an item reveals specific content (setInSlot) . When you use the back button it changes the token name to the token used before but you still see the old content.
My question is: How do I get back to the content which was shown before?
You shoud use the GWTP presenter lifecycle. When you use back button, the previous presenter is revealed. You should override onReveal() and onHide() to clean or save the presenter and view state.
If you want clean a presenter when the place changed, you should override onHide() and in the body you can clean the view before the place change.

Scrolling issues with Facebook Requests dialog

I am trying to call new Requests Dialog from an iframe facebook application by clicking a button located at the bottom of a page (you need to scroll to get there).
This is what happens when you click the button:
Temporary dialog with a progress bar is displayed in the middle of visible screen
Page is getting automatically scrolled to the top
Actual dialog appears in place of that temp loading dialog at the bottom of the page, so it is not visible
Is there a way to make it either not scroll to the top automatically or at least display the final dialog at the top as well so it can be seen?
it's a bug: http://bugs.developers.facebook.net/show_bug.cgi?id=15440

Coda Slider Tab Navigation

I am using Coda-Slider for my website and I want to know if there is a way to change the content of each tab. For example, the user navigates onto tab2 where I placed a link to redirect the user to another page. Is there a way NOT to navigate away from the page nor the tab but instead load the link inside the tab? I was thinking it would look something like a modal box that would stay inside the tab instead of popping up.
see 19. Coda-Slider Sliding Tabs or you might want to try 35. JQuery IDTabs if you want the effect to be non-intrusive