Event Based Workflow for Exiting 3rd Party App - android

I am working on developing a workflow for a mobile application . The application uses a 3rd party app, the use case is clear
On exiting the 3rd party app by unexpected means( liking closing the window) i want some kind of event based workflow setup to indicate my application that the user has exited the 3rd party application. Is there some kind of Example Workflows that i could refer for this use case ..

Related

MS Teams app (Android) can't handle intents during login

We currently use a web-based login-portal which in turn is dependant on third-party authentication apps to log in to the MS Teams app for Android.
The way this works is that we have a login link like: authapp:///?token=12314&redirect=null which should open the third-party app and start the login, the issue is that the MS Teams app can't handle intent-links like authapp:/// and similar at all so we just get a generic error message during login.
I've tested this myself in my own app and the problem stems from the Android Webview component not having intent-handling built in like a browser would so instead MS Teams needs to implement a general handling of these links themselves (which is easy to do).
Wrote to support which basically told me it's out-of-scope and to write here instead, so here I am hoping a Microsoft dev sees this and can give an explanation as to why this isn't implemented.
Note: All of this works on iOS so it can't be intended for it to not work

Interacting with a third party app from my flutter app

Is it possible to interact with a third party (non flutter) android app from my flutter app? The third party app is called metatrader its a free stock and currency trading app , I am planning to make an app which can interact with metatrader android app, but I'm not sure if it's possible
there are some input fields in the metatrader app and I want to paste some data into the metatrader input fields from my app.
If it's possible then what's the best approach?

Start android app from dialog flow

I'm android developer started with Dialog Flow. I need to run my application in the end of dialog flow conversation. Currently I have dialog flow and note js script working but I cannot run my android application from the dialog flow or firebase function.
What is the simplest way to do it? Can I run android app strait from js script? Can I use Deeplink for i?
Or I need Firebase Cloud Messaging (FCM) ?
Any other options?
Thanks.
The best way to link the two at the moment would probably be to use an FCM to notify devices that are owned by that user.
Dialog flow is majorly a text-based conversational interface and it's best utilisation in app point of view would be designing Chat bot for your application. For instance, if you are working on Banking app, Chat bot can be implemented as an separate module and with the use of appropriate deep link based upon the questions users asks they can be navigated to the Page/content/reference users are looking for.
For bot response call it is vital to integrate AIConfiguration in your code with a project specific token code. Also, Dialog flow has an excellent facility where we can input of own questions and answers and train the agent accordingly.
For example, if user inputs 'What's new in your Banking app?' we can add this question with it's answer in Dialog flow setup.
Moreover, there are various applications or different usage of this feature like Suggestion chips, Deep link so on.
Follow the below link for additional information:
https://cloud.google.com/dialogflow/docs/quick/setup

Deeplinking apps in Android

We have a case where we want to navigate between apps, case where
triggering a payment will open the payment app
once the payment is complete it should navigate back to the original app.
I have found few theoretical solution for (1), can use Android Intent(I hope I'm right here), or use services like https://deeplink.me. Which navigate to the payment app, I assume here that I can pass some complex data along with the request to navigate to the correct page on my app.
For problem 2, I'm yet identify a solution, Do I have include Intent filter in the source app too? say the source app uses the payment app's sdk and is there a way I could pass back the response an HTTP response which the source app can use to navigate to the right page (payment success or failure).
You are correct: an Android Intent can be used to open another app (documentation). Facebook's Applinks standard can also do this, as can the Branch.io service (amongst many other things). Deeplink.me AppWords is a neat concept, though it appears to be bid-based and I can't see a way to open a specific app on demand.
However, unless there is a need to use an external app for this, why not just integrate something like the Stripe Android SDK, or PayPal's braintree SDK or native SDK directly into your app? That way you don't even have to worry about passing data around externally and you retain end-to-end control of the process. Seems like a far more elegant solution!

Android: How do I perform automated integration tests with a server secured by OAuth

I'm building an android application which fetches some data from a server which in turn controls access by OAuth. (Xing in my case, could be Facebook or whatever without loss of generality). Builds are controlled by Jenkins and the maven-android-plugin.
Proper integration testing of the application would require that I somehow pass the user credentials to the emulator under test. Assuming that I can put the credentials into the integration tester app at build time (separate question about that on stack overflow), how would I go about simulating the user typing and clicking in the web browser which will be launched during the OAuth authorization phase?
Futher complicating the issue is that my own app (package com.mycompany.myapp) and the web brower used to enter the credentials (com.android.browser) share neither a common package not a signature, which seems to be required by Robotium ( see https://code.google.com/p/robotium/wiki/QuestionsAndAnswers , question about test case spanning two applications)
Robotium can simulate user interaction like providing data to text inputs and so on and will be running as an instrumentation test on the devices.
The android-maven-plugin examples projects has some examples set up for using Robotium and can easily be used to execute these tests on all attached devices and emulators.

Categories

Resources