Persisting cookie for iPhone UIwebview mobile web app - iphone

I'm using MVC4 forms auth. My mobile web app runs in full screen UIwebview on iphone. I have a home screen icon for my mobile web app. The app needs to launch external links. Those launch in Safari, which works fine. However returning to the mobile web app by clicking again on the home screen icon, seems to have logged the user out. Ideally I want the user to remain logged into the web app after viewing the external links in Safari. Maybe the cookie got deleted? Can I persist the cookie?

FormsAuthentication.SetAuthCookie(username, createPersistentCookie: true);
This fixes the log out issue

Related

Using SSO in a third party controlled web view in Flutter Web

I'm using various SSO options such as Google for my Flutter Web app which generally work fine. If opened in a web browser the sign in dialog is opened either in a popup (desktop) or a new tab (mobile).
However, when the link to my app is shared in e.g. Facebook and opened through the Facebook app, a webview inside the Facebook app opens my app. This webview does not allow tabs, therefore the sign in dialog is opened in the current view, overriding my Flutter App. This prevents any SSO from being used when opening the app this way (e.g. through the Facebook app)
I've tried forcing the app to launch in the default browser instead of the Facebook web view but wasn't able to do so.
Is there any way to open the default browser even when the link to my app is opened from within the Facebook app?
Or
Is there any way to provide access to the (e.g. Google) authentication screen without killing my app in the process?

Manage pages displayed in Progressive Web Apps ( PWA )

I am new to PWA and was just going through some readups. We have public website and in the website we provide login for users to manage their account. By going with PWA, I understand that users can save the website on the mobile homepage as an icon. My question is that , when user click on my PWA icon , can we load the login page for the users so that they can only manage account with PWA instead of loading entire website.
The Web App Manifest allows you to control how your app appears and how it's launched. You can specify home screen icons, the page to load when the app is launched, screen orientation, and even whether or not to show the browser chrome.
The web app manifest is a simple JSON file that gives you, the developer, the ability to control how your app appears to the user in areas where they would expect to see apps (for example, a mobile device's home screen), direct what the user can launch, and define its appearance at launch.
You can define how your app is launched, add a query string parameter to the start_url that indicates how it was launched.
"start_url": "/?utm_source=homescreen"
Hope this helps!
Yes you can, within your web app manifest file you can set a JSON property called "start_url".
There's further information here https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/#set_a_start_url

My web app not showing on facebook native app

My app is showing on facebook desktop, m.facebook.com, but not on the native app?
I meant not showing on bookmark or favorite. When I search for it within the native app I can find it.
According to the documentation it should also appear on the native Facebook app bookmark?
Can anyone please advise what did I do wrong? I have set the mobile web setting already.
Thanks
If your app has a native app, the it will show up in the Facebook app bookmark list. If you app is a desktop or canvas app, it shows up on desktop. If your app is a mobile site, then it shows up on m.facebook.com. You need to specify the type of app or apps you support/have/exist in the developer dashboard for the app.

Redirect from Facebook's iPhone App to Safari

When clicking external links in Facebook's iPhone App you are staying within the App itself instead of going to Safari. I want people coming to my site to open my site in Safari (or whatever browser) instead. Is there anything I can do about that?
The problem is that my Cookie-based Authentication using ASP.NET is not working, for some reason, within Facebook's browser. This is only a problem when clicking my site link from within Facebook's Native iPhone App, it works fine from Facebooks webb app or opening directly from Safari.

App request doesn't work in iPhone browser but works in Facebook application

I'm sending an application request from my iPhone application and want the user to be redirected to the App Store page when he accepts the request.
In the application settings I've added the "App on Facebook" item with fake Canvas URLs besides "Native iOS App" in order to see the requests (they don't appear with no Canvas URL). Everything works fine in Facebook application on iPhone/iPad but doesn't work in the Safari browser on the device.
The request doesn't bring the appstore but open the error page:
Error
Sorry, the application you were using is experiencing a problem. Please try again later.
I've seen some other apps which works fine: request being clicked in the browser brings appstore. So guess something is missing in app settings or similar. Any clues?
Have you tried using your app store link as a URL?