Windows Phone device back button would quit the app, but not go to the previous page - windows-phone

I am making a Windows 10 Universal App with this tutorial. Everything works fine, but on a Windows phone, when a user click on the back button on the device, it would just quit the app. The expected behaviour should be going back to the previous navigated page. How can I handle this for my web app, probably using JavaScript?
Thank you!

Related

html5 app freezes in ios13 after navigating to an external url in in-app standalone safari browser and back

Issue
My web application built using nuxt and installed as web app on iphone becomes unresponsive after I open or visit an external link from the app. Issue specifically comes iOS 13.4 and above on real devices. Simulators works fine.
Devices
iPhone X and XI (all versions) with iOS 13.4 and above
Steps to reproduce
Open url https://nuxt-min-pwa.netlify.app/ in safari.
Tap on share icon and then add to home screen.
Open app from home screen.
Tap on menu icon.
Tap on second.
Tap on link named ICE.
App will open an external url.
Tap on Back to App button to return to the app.
Tap on second now.
App does not responds. A thin loading bar seems to be in progress, everytime second is tapped. But nothing else happens.
Web app is working fine in iphone8 with ios 13.3.1 and Xcode simulators. There is a similar issue reported on both stack overflow and apple developer forum. Although it specifically mentions microsoft openid, but I am sure, issue comes up with any external url.
PWA freezing on navigation clicks in Safari iOS (13.5) after OpenID Microsoft sign in
https://developer.apple.com/forums/thread/649699
Source code for app
https://github.com/appsbuddha/minimal-nuxt-pwa

VB.NET Web Browser Youtube full screen not working

I have been working on a simulation of windows 11, and it works, pretty well, but I added a web browser so you can browse the web and whenever i clicked on full screen mode on youtube, the video still shown, but the full screen part was all black.
This is the video fullscreen
Anyone have any idea how to fix this? I have been searching the web for it and I can't find anything.

how to disable Push Notifications os popup on ios and avoid to launch app on main page

I am doing automation using Appium and I came across 2 major problems.
How to dismiss SEND/PUSH Notifications popup on iOS which is system popup
If I install the application and uninstalled it and then again installed, It is launching the app with already user signed in. How can I avoid it to launch signed in instead of Showing on Sign in.
To cancel the PUSH Notification, I am using autoAcceptAlerts, which works but not always.
Though ideally uninstall and install shall not have leave the user logged in. But you can try this to logout the user after every relaunch, you can use ((AppiumDriver) driver).resetApp() for resetting the application so that it launches back with the login page.
For dismissing the alerts autoAcceptAlerts should work. Another way to tweak it is to use ((IOSDriver)driver).SwitchTo().Alert().Accept();. You can also try your hands on some methods mentioned here.

Instagram OAuth site not working any more

I have a Windows Phone application and I am using the Instagram authentication. Everything worked fine Long time until a fe days ago. The Login page is not loading any more in the Webbrowser (in app browser) but still works in the real browser.
I am using this link:
https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code
It works fine on my PC and in the normal Windows Phone browser. But it doesn't load any more in the in app Webbrowser, it just stays blank. You know why?
Even when I navigate to www.instagram.com in the in-app bwebbrowser object and then tap on Login, it doesn't load. It loads a blank White page.
I really need help!
Instagram helped me :)
In Windows Phone 8 webbrowser control you must enable scripts. Just set this property to True and it works again :)
IsScriptEnabled="True"
In Windows Phone 8.1 you don't have to do that. I can confirm both :)
Thanks Instagram for your help!
It looks like they have performed an update to their systems over the past few days which causes Javascript errors to appear in the OAUTH window under IE8. Don't really know anything about Windows Phone but it could be related.
This is something that one of my colleagues has reported today so we are waiting to see what their response is.
Kev.

Detect closing of mobile Safari

I'm building a WebApp which uses video server push with:
<img id="vidsrc" src="video.cgi"/>
It works. And when saved as a WebApp using "Add to Home Screen" closing the app does as expected and stop receiving the server push.
However when running in mobile Safari, only closing the page will get it to stop. What I'm trying to figure out is how to get it to stop if the user clicks the Home button and closes mobile Safari so the push doesn't keep running in the background.
Because of what I've got to work with, editing video.cgi is not an option. And using video.cgi in an iframe isn't a good solution because of some other functionality in the page/app.
onBlur and onClose don't seem to do it, and I'm wondering if there's any way an HTML page or the good stuff in it can know that mobile Safari has been closed.
Unfortunately, you can't... Web apps are not allowed to access the device's software, so are not told when you have pressed the button.