Android Chrome Webview access to Google Pay is not working - android

Trying to integrate Google Pay (via Stripe) in our App.
On Android 7.0, the native chrome browser is able to get access to the Google Pay data and display the stored cards in G-pay
But when we try to access the same from inside the Chrome Webview we are launching as part of a test Android App, it is unable to fetch the G-pay data.
Is it a limitation or a bug?
Any pointers appreciated.

If you want to use Google Pay via a mobile app, you should use a native implementation, such as that offered by Stripe, or use a browser intent from your Android app to open the mobile Chrome browser
Just as a note, something similar happens with Apple Pay; Apple allows you to use a native implementation in an app, or web-based Apple Pay with mobile Safari or SFSafariViewController, but not more restrictive web views.

Related

What browser is used by android App with an iFrame

I'm developping a mobile app in Ionic 5 cordova, and in my app I use an iFrame.
I would need to know what browser is used in Android and in ios.
I ask that because I'm using Stripe Payment Request Button in a webpage embed by iFrame and the button is shown when I open the app as a PWA, but not when it is build as an android/ios application.
When I look at the requirements for the Payment Request Button to work, it say that I need a browser compatible to Gpay/Apple Pay. Since I have the button appearing chrome mobile and on chrome browser, but not when opening as my mobile app, I assume the browser use for an iFrame is not compatible with the Payment button ?
Apple Pay for the Web should be supported in a SFSafariViewController on iOS.
Google Pay for the Web is not supported in an Android webview:
For Android apps which use WebViews, you must invoke native Android Google Pay APIs. See Binding JavaScript code to Android code for examples.

Is there a live PhoneGap harnessing web application example?

Short version:
Are there any web sites people have developed that harness PhoneGap functionality that are available on the web?
Long version:
PhoneGap allows developers to package a web site inside a native app. It also allows developers to have a PhoneGap webview embedded as part of their application. They can then point this PhoneGap integrated webview at any url, and use it like a browser.
I cannot develop web sites myself so I want to know if there are any web sites on the internet that use PhoneGap features.
Thanks
Not wrong. In order to access the Phonegap API the Phonegap App must be installed on the device. The content inside the App can point to a website, that's correct. But that does not change the fact that you need to download and install the App first.
I have two Phonegap Apps in the Apple App Store so I know what I am speaking of.
PhoneGap has a section on their website dedicated to mobile apps that were built using it:
http://phonegap.com/apps

My Facebook App also works inside iOS/android apps?

Can a custom FB web app be used inside the iOS / android FB apps? Docs are not very clear on that. You can create Bookmarks for native apps, but I want to have a bookmark pointing to our custom FB web app canvas. The goal is to develop an app that's usable on all platforms.
I've been making some test and I could'n execute a non native app from facebook app or web page, and it's not easy to load facebook web page in PC mode from a mobile device.
The official Facebook documentation for iOS says:
When a user does a search in the Facebook app your app will be visible if it passes a usage threshold. The search results will display apps that have been configured for SSO support. When the user selects your app from the search results they will be directed to your app. If the user had previously authorized your app they will be authenticated when your app is launched.
I guess that for Android will be pretty like this. So if you develop a native app that only shows a WebView pointint to your web (pretty simple by the way in iOS and android) must work with no problems.
Usually Facebook APPs are on Flash, so I don't think that it will work on iOS (Please correct me if I'm wrong with the Flash issue).
On Android, it would be extremely easy, having in mind it works with Flash with 0 problems. You'd just have to implement a WebView on your layout and point to the url of your facebook app.
In general, you can really create applications that work on both systems, iOS and Android, playing with the webView's. However, you have to know that they will never work as if they were written on native code in terms of performance.
From what I've seen, if a developer already has an existing mobile version of their app which is also on Facebook, they are able to create a tab for it that will appear on Facebook for iOS and Facebook for Android. I don't think you can create a bookmark to the webapp version to be seen on a mobile phone. Users can of course bookmark your webapp on their browsers, though.

How we can create Android Chrome web applications that are present on the Google Chrome web store

Im new to Android and Google chrome web application development. I want to create an android application which has the ability to run Chrome web applications that are present on the Google Chrome web store. Can some body guide me , how I can start and where can i find the step by step helping documents. I googled it , but dint get any .
If any sample codes available to start, then that would be really helpful.
thanks and regards
Suje
There's two kinds of Chrome Web Store (CWS) apps: packaged and hosted. Packaged ones don't have a URL and can only run inside Chrome. Hosted apps are just regular web applications hosted at a URL and can in theory run from any browser, provided that it supports the features needed by the app.
There are a few ways to embed web apps into an Android application, the most popular of which is PhoneGap. Here's a nice getting started guide. http://www.phonegap.com/start/

Best Approach to write a FaceBook application for Android

BackGround:
There are Facebook APIs(and SDKs) available to develop applications for other Mobile devices like iPhone, BlackBerry etc, but it seems there are no official ones for Android(?).
People have ported Java APIs to work on Android and have written FaceBook Client applications(FaceBook dev: Wiki Page). Apparently, there is also a light weight FaceBook SDK in alpha release for Android(a la FBRocket). But it is not avised to be used in Production.
Since these FaceBook functionalities have been exposed as REST based service, most of work would invove sending requests in desired format over Http. So, writing a FaceBook client app for Android certainly is doable.There are similar applications already in market e.g.: Bloo.
Questions:
When asked to write a FaceBook client application what approach should one undertake? Should we choose the SDK or invoke the services over Http?
If there is already a Web application that integrates with FaceBook, can we just browse to that Application from inside a WebView and be done with this?
Thanks!
I would use the Java APIs. You mention they were "ported" but were they? You develop Android apps in Java, you can often just include .jar files and use them in your Android app without any sort of "porting". REST access to FaceBook would also work fine too.
Are you talking about a custom application that you've built on top of FaceBook? If you already have a webapp that works fine in the Android browser then it would be fine to just have your users go to that site by giving them the URL. If the WebApp is only part of your application then you could pop open the browser with that page open, or you could load that page in a WebView as part of your larger application. However if this is all your application is doing, then it's not really an application, it's just a glorified browser bookmark and I would strongly recommend against releasing an app like that to the Android Market unless you like getting horrible ratings.

Categories

Resources