Square POS Web API Android browser error - square-connect

having an issue with Square POS Web API on Android.
We are trying to implement a kiosk app and the kiosk browser is Android based.
If run in Chrome browser the Square app loads fine with no error however if loaded in an Android browser (eg Dolphin) it fails with the following error.
Point of Sale API must be started with startActivityForResult() in the same task. It looks like the caller either used startActivity() or used startActivityForResult() from a finished activity or with the FLAG_ACTIVITY_NEW_TASK flag.
How can we fix this so the app can be used in kiosk apps that use android browser?

Square POS Web API only works with Chrome intents. Therefore you must use the Chrome browser with your Android device. We are in the process of updating our documentation to reflect this information, sorry for any confusion!

Related

Task module with React component doesn't open

I have a Teams bot (.Net Core 3.1 + Bot SDK 4.0) and I call task module from it to render my React app. A React app is a SPA located at the same App Service as a bot. It works fine at the local stand and at the developer's stand, but at the customer's test stand, after calling the task module, a problem arises.
At desktop windows app there is happening nothing at first time, after the second click of the button to open the task module, an error appears at the bottom of the adaptive card:
There is an error in the Developer Tools:
I also tried to open this task module in popup application mode, it returns an error window:
In the Developer Tools, in this case, I have the following errors:
When I try to open my React app from the browser or use it as a tab for my bot, it works fine. What should be the problem with opening it as a task module? Maybe I need to do some extra steps in the Microsoft Teams admin center?
I found a way to solve the problem. I installed the bot through a local upload of the manifest, but then I found out that it was also added to the list of applications for our organization (at Teams admin center), and apparently there was some kind of collision between them. After I uninstalled the application from my desktop Teams and installed it from the application pool - the error disappeared.

Embed PWA version of Google Apps into a Nativescript App

I'm a Rails developer and I'm discovering now NativeScript. I know Vue, and looks like NativeScript support Vue.js
As you know Huawei device cannot accesso anymore to Google Play Services, but the web version of the Google Apps, like Youtube, Gmail, Drive still works.
Instead of having a lot of web shortcut on my home screen I think to write a simple NativeScript App where i list on the homescreen some Google Services I need and clicking on an icon, Google Drive for example, I launch drive.google.com inside the WebView.
Do you think is possibile? Do you see any issue with login?

It is possible to use chrome / chromium webview in Cordova application for Windows 8/8.1/10 Store App?

I want to build a cross platform application in Apache Cordova that uses a Chromium-based Webview component for Windows Store Apps.
Similar to Crosswalk https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
It's possible?
Windows Store apps cannot use Chrome and must use the default browser shipping with windows (you can't even put a none-Edge browser into the windows store). I guess the good news is that if you are patient, Blink (which is the rendering engine Chrome is based upon) is becoming the default rendering engine for Edge next year. BTW crosswalk is also dead, as Chrome is now the rendering engine for all modern Android phones..
Edit from 2020... Since Slack and other Electron apps are in the store and since Cordova now supports Electron - you might want to go with Electron instead of creating a Windows Store app.

Cant debug any apps on google chromecast device

I registered the chromecast in chrome developer account but still i am not able to debug any apps. Chromecast is showing up in the developer console, but the inspect button is not visible. I tried debugging my own styled media receiver app.
https://developers.google.com/cast/docs/debugging
You might have to restart your device to ensure it downloads the latests configs for development. Also, it is very easy to get the serial number wrong when you register your device in the Google Cast Developer console, so double check that too.

Opening google earth api in mobile web browser

I wrote a web site with google earth api and it is working fine.
I want to open this site via mobile browser, and it's giving me the following error:
"the plug-in of google earth is available only for win and mac".
How can i get through it?
Thanks.
:)
I am having a similar issue. I wish to try and use Android WebView instead of setting up GooglePlayServices at this time for an art project
I have the example loading just fine on Windows and Mac, but I need this for my Android art project.
My source code can be viewed at this link below:
www.rennakanote.com/earthdraw
I will attempt to see what I can try from Google Maps V3 APIs as per your instruction JasonM1 and see if I find a way to load this in Android.
Unfortunately, the Google Earth Plugin and Google Earth API is currently only supported on the Windows and Mac platforms.
Full list of which OS versions and browsers are supported can be found here:
https://developers.google.com/earth/documentation/index#installing_the_google_earth_plugin
The mobile version as well as the Linux version of Google Earth does not currently support the Google Earth plugin.
If you redesign your web site using Google Maps V3 APIs then it would be supported by mobile and desktop web browsers. Google Earth is a thick desktop and has restrictions especially with respect to mobile devices that a pure web application such as using Google Maps APIs can avoid.
Although the Google Earth plugin doesn't work on mobile devices, both Android and iOS devices have a Google Earth app available for them.
Thus a good way to show your data on both desktop and mobile devices is simply to publish it as a KML file, which will load in all versions of the program. The mobile devices don't actually offer a "load file" option, but instead rely on the fact that if you present the device with a KML file with the correct mime type, then the system works out that the Google Earth app is the appropriate one to display the file.

Resources