InAppBrowser not working in ionic 3 PWA (web app) or browser - ionic-framework

I am using InAppBrowser for payment in my Ionic 3 app. Everything works fine in a real device. But when I run my app in browser, inappbrowser plugin doesn't work.
On the ionic platform website it is clearly written that this plugin supports browser, but using event listeners throws errors like
subscribe is not a function and link gets opened in the new tab of standard browser.
Please help me with that.

Related

Chrome doesn`t automatically indicate to the user that Progressive Web App is installable

I created a PWA written in Flutter. Chrome and Safari doesn`t automatically indicate to the user that Progressive Web App is installable. In Chrome I have to open the 3 vertical dots in order to install.
What shall I do in order to have a notification to the user to install the app?
Note: I have to say that based on running a Lighthouse audit the Pwa is installable.
Thanks,
Luis

Ionic 3 running in the browser: application navigates to root when switch back to Safari

I have built an Ionic 3 app which will be served in the browser (as a PWA).
I build it using ionic cordova build browser --prod, everything works as expected, but in iOS's Safari there is a strange behaviour: the app navigates between pages using the NavController's push method and the url changes, using a hash strategy, and when the user go to another app and then returns to iOS, the location from my Ionic app "reset" and the user is sent to to root.
Anyone has any idea of why this can be happening? This does not happen in Android's Chrome.
What you are experience is a known 'bug'
Maximiliano Flirtman expose that behavior for ios PWA with:
Your PWA won’t keep state between sessions, if the user gets out of a PWA, it will be restarted when coming back, so if you need the user to validate an email, SMS or do a two-factor authentication, have that in mind to offer a proper solution.
See all Maximiliano Flirtman post.

How can I open my PWA app from other native app?

I am implementing a PWA application and a native application on Android. I need to open the native app from PWA app which I know how to do that. Basically I need a URL provided from the native app and open the URL from PWA which will bring the native application. This approach is pretty much like opening google map by clicking its url: http://maps.apple.com/?address=1,Infinite+Loop,Cupertino,California..
Now I have a requirement to open my PWA from the native app. For example, if I share the PWA url through facebook, I'd like other people open the PWA app when they click on the url in facebook if they have installed the PWA.
How can I achieve that?.
You don't need to implement anything to do that. Android does it for you. For example, if your PWA is hosted on https://my-pwa.com and the user clicks a link with the href https://my-pwa.com, Android first looks through your PWAs and if the URL matches, it opens the PWA. Otherwise Android opens the Chrome browser.
Just verified this on an Android 6 device.

Launch Twitter using device’s browser, not launch Twitter app on iOS device

I have an ionic 3 app that needs to launch my company’s Twitter page in the device’s browser. The Twitter link is like : https://www.twitter.com/mycompany.
When I add this link to my page, the behavior is like this:
If there is no Twitter app installed on the device, the ionic app
will launch the device browser with the Twitter url above.
If the Twitter app has been installed on the device, the ionic app will
launch the Twitter app, and users have to log in to use the Twitter
app.
This happens on iOS only, even when using InAppBrowser plugin.
Is there any way to always launch the link using the device’s browsers, even when the Twitter app has been installed? It really annoys when users have to create an account and log in to Twitter app just to view my company’s Twitter page.
Thanks.

open facebook app to login (meteor/cordova) iOS/Android

1.)
I have a native meteor app on my devices (ios/android.
2.)
I would like to enable a facebook login for my app (android/ios devices).
3.)
If the facebook app is installed on the device it should open the facebook app to login.
else it should open the browser.
Problem
there are so many facebook packages out there and its hard to choose one with the latest facebookSDK for meteor that works with cordova and allows me to open the installed facebook app. All packages had tested just opened a new browser window. can someone give me a hint for a working package that actually works?