Codename One Browser Component Redirection - codenameone

I am using Codename One Browser Component to show a web view that redirects me to the app if I have it installed. The problem is I don't want it to open the app even if it's installed on the device. I want it to stay on the web view and continue instead.
Just for information this problem is only in the IOS version and not the Android version.

Related

Launch to google play and iOS app store to download a different app

I have separate user and PRO app. If a user downloads the PRO app I would like to give them the option to download the user version with a simple button to take them to download the user version from the relevant store. I'm looking for some guidance on the best way to achieve this.
You can use CN.execute("uri of my app"). You can check the CN.getProperty("Platform", "android").equals("ios") to check if this is iOS and use the itunes URL. Otherwise you can use the Android URL.
On the desktop this will open the browser but on the device it will launch the appstore.
See this post: https://www.codenameone.com/blog/rating-widget.html

React native: what is the difference between opening an external URL in-app and launching the native browser

I am using React native to develop a mobile application, and an external module's function I use to provide the user login flow via an identity provider, opens the link to the sign-in flow in-app, like shown in the header below.
The sign out functionality offered by this module is documented to be obsolete, so I am implementing my own routing to the identity provider using Linking from the react-native node module, except this actually opens my native web browser rather than showing the page in-app (and subsequently fails to redirect back to my app).
My question is, what is the technical difference between an app opening a link in-app like shown above, and the app simply launching the native browser, such as chrome? And would this affect functionality like redirecting back to the initial application once the user process has been fulfilled (my guess is that it should not affect it).
I believe that the difference is that the in-app browser on IOS is an instance of
sfsafariviewcontroller and on Android, is an instance of Chrome Custom Tabs.

React service worker not working?

Hello Guys !
Today I deployed an app online to test it but didn't understood very well why it didn't work.
What I did :
I've created a sample react app using bootstrap and used firebase to deploy it. Here is the link.
What was expected ?
I wanted the app to be able to be downloaded on the phone as angular.io is.
Reality :
Nothing special. It's in fact registered in service worker and very fast to load and download, but nothing more.
Problem now :
I've done it today two times but wasn't able to use it as well as the image of service workers I had.
What should I do ?
You need a a 144px square PNG icon to be defined in your manifest.json to enable the web app install banner.
You can validate whether your application can be added to your homescreen from Chrome on a desktop computer.
To do so, open the Chrome developer tools on your website, open the 'Application' tab, click 'Manifest' in the left navigation and then click 'Add to homescreen'.
If there's a problem adding to homescreen an error will appear in the console, when trying it on the website you mentioned I received the error 'Site cannot be installed: a 144px square PNG icon is required, but no supplied icon meets this requirement'.
You can read more about the requirements for web app install banners here https://developers.google.com/web/fundamentals/app-install-banners/.

How can I request a desktop site from a Codename One Browser Component?

I'm designing an app which has an embedded page on a form, using a BrowserComponent. Unfortunately the maintainer of the website recently created a very unfriendly "mobile friendly" version of the page and the user experience is much better with the desktop site.
Is there some way to get the BrowserComponent to request the desktop site?
You need to change the user agent to match the one of a desktop browser see Codename One - BrowserComponent: custom user-agent

can i add progressive widget on another android or ios app screen using codename one?

I am making an application on codename one. i want one progressive widget which can call my application on another android and ios application screen. so how can I provide progressive widget of using codename one on another android and ios application?
I added diagramic representation what i want plz refer this an give the solution
Codename One doesn't integrate well as a widget into other apps. You can integrate an AAR into Codename One and work with a native widget (e.g. embed Google Maps into Codename One) but taking a Codename One app and embedding it into another application would be problematic.
One thing you can do is launch a Codename One app based on a URL scheme and then return to the original app by launching it via a URL scheme. This works on iOS and Android and we cover it in the developer guide.

Resources