Direct users to use Uber for Business using Deeplink - android

We would like to add the Uber Deeplink functionality to our iOS, Android and Windows Phone app. Our users are business users. The business wants them to travel using Uber for Business so their expenses will be paid by our business.
Some questions:
What is the purpose of the client_id parameter keeping in mind we would like to use Uber for Business? I've mailed myself two Deeplinks to test the implementation, one with and one without the client_id parameter; I saw no difference between these two when opening the Uber app using the Deeplink. Also the developer pages only gives information regarding Affiliate tracking: In order to attribute any deep linking action back to your application, be sure to always include the client_id parameter.
We would like to remind the users that they need to check their invitation e-mail from Uber to use Uber for Business, or use their Uber for Business account if they already created one. Is it possible to redirect the users to create or login using their Business account? Now it always gives the possibility to create a new account when opening the app using the Deeplink, but we don't want users to think they need to enter their creditcard details and travel using their personal account.
Many thanks for your replies in advance!

1) The client_id is only used to track deep link calls and provide attribution to earn through our affiliate program.
2) It is not currently possible to force a user to login via the uber for business invite link via a deeplink. They need to login with their uber account and than accept the invite from the email they receive when enrolled in the uber for business organization.

Related

How to securely share data between two Flutter apps (credentials)

I’m a little bit stuck on a subject.. I was developing 2 mobile applications with Flutter, each with an authentication system. I would like to develop the following functionality:
I log on to the "A" application, I save my credentials.
I open the "B" app, I can find the account with which I signed in the "A" app. (For example: On my iphone, if I sign in with my google account to Gmail, I find the same account on all the google apps on my phone).
So I would have to be able to store the passwords & identifiers securely on the phone, and only my 2 applications could have access to this "common" database. I looked at Hive/ SQFLITE, but I don’t think it’s suitable for this kind of functionality to share between 2 apps...
Thank you for your help,
JH
This sounds very similar to Google Account Linking with OAuth-based App Flip:
OAuth-based App Flip Linking (App Flip) allows your users to easily
and quickly link their accounts in your authentication system to their
Google accounts. If your app is installed on your user’s phone when
they initiate the account linking process, they are seamlessly flipped
to your app to obtain user authorization.
This approach provides a faster and easier linking process since the
user does not have to re-enter their username and password to
authenticate; instead, App Flip leverages the credentials from the
user's account on your app. Once a user has linked their Google
account with your app, they can take advantage of any integrations
that you have developed.
That said, you will need to go Android/iOS-specific to solve this on your own, but you can draw a lot of inspiration from the App Flip example code provided by Google!
On Android you will be using Intents that return data to their caller. The idea would be to have the "A" app listen for a custom intent for example using package receive_intent that shows some kind of "Allow B to login with A" screen and returns the credentials like this:
import 'package:receive_intent/receive_intent.dart';
// ...
Future<void> _setActivityResult() async {
// ...
await ReceiveIntent.setResult(kActivityResultOk, data: {"credentials": "abc123"})
}
// ...
Best of luck!

Can you provide a login screen for Actions on Google

We currently have an Alexa app that lets users ask for details about upcoming events, now the company wants to implement the same thing for Google's assistant. It seems like this is supported through "Actions On Google", which is very similar to Alexa.
One thing Alexa allowed us to do that I cant figure out with Google is setup a login screen. When a user first accessed the app via voice command, it would take them to an authentication page. We used this to tie an Amazon user to our internal records so that we could identify their specific information when they made a request. It was also used for authentication and authorization.
I dont see how to do that with Google. I assume that you can, but I havent been able to find it. Is there a way to set up a login screen so that when someone says "Hey (Agent), tell me about my day tomorrow", I can confirm who the person is to look up their information?
Yup, you're looking for Account Linking.
The term comes from linking the account they log into with your service to the account that Google uses to track them. You'll need to implement a basic OAuth server, including the page where they log into your service when they're directed there from the Assistant, and a way to issue authentication tokens to the Assistant. When requests come in from a user with a linked account, you'll get the tokens from the user, and you can use this to identify who the request came from.

Social media and regular login in app using own db

I'm currently building an app (android and ios) for which I now need users to be able to login. It must be possible to both sign up regularly (entering username, password, name, mail etc.) and to login through various not yet determined social media such as facebook, twitter, gmail, hotmail.
Now my questions are as follows:
1. Are there any framework's supporting this kind of in-app+social media login scenario ? (I know there is stuff like auth0 but it seems that you don't have that much control with this. As I'm going to save statistics about user navigation and such I think it would be preferable to store all my users in my own db, regardless of their way of logging in. Thus to me it seems like what I need is just an easy way of getting information from these social media and then register users as if they had just signed up regularly am I right ?
2. Anything obvious I'm missing ?
All of these social media sites have their own sdk's that allow you to login users and get certain information from them. So using a website like facebook's sdk you request certain information about the user logging in such as email and first/last name, then save this information in your database including it came from facebook. You will need to also create/encrypt a password for someone coming from a site like this. This is very important, obviously they won't give you access to a user's password but you don't want the user's account on your website to be vulnerable. I would limit the number of ways to login because you will have to program and work with each websites sdk in order to do this. Probably just use your own login and a facebook login to start
Here is a link to facebooks website for developers which gives you access to their sdk's for different platforms https://developers.facebook.com/docs/apis-and-sdks

How to whitelist (Production) my android app in Uber?

I am using uber api in my android app. Firstly I am getting invalid scope in uber after authentication to my account, but later I find out the solution for this.
This is working when I add an account(email) as admin in developers in uber dash board.
But I want to make this available to all other user who uses my app. So for this I have to request for whitelisting in Uber Dev Dashboard as suggest in help section.
But I am not getting any option for that. Can any body have solution for this.
Thanks,
"This is working when I add an account(email) as admin in developers in uber dash board." - Yes, Uber allows limited access to privileged scopes, for the user and up to 5 users added in the developer dashboard.
For whitelisting, here are the steps to Request Full Access:
Sign In to the Developer Dashboard
Click the Authorization tab
Click Request Full Access next to the privileged scope
Provide as much information about your app as possible
Submit the request
https://developer.uber.com/docs/rides/scopes
For posts, questions like this in the future that do not deal with programming but are instead specific to Uber's platform, please post on the Uber developer community forum. Thanks.

How to use facebook test users from android

I need help using the facebook test users from android.I am using the facebook android sdk and i need to be able to login as a test user and do actions like publish to the stream. I do not want to use the developer account associated with this application since it is my personal account. I realize that test users can only be created using api calls and such a call returns the login url, i understand how to use this in a browser but how can i use it in my android application. Can i create a dummy account and work with that account or is this against facebook policy.
Test users can also be created with GUI - not only by API calls. GUI is useful if You need to handle just few users. If there is a plenty of them - it is easier to use API and perform it programatically.
How to handle test users by FB GUI:
Go to FB developer site, where You created FB Application
on application tab, click Edit Roles
At the bottom of the page there is 'Test users' section where all test users are listed. This is where test users can be created and edited. Each user has option to log in as this user, change his name and set password next to his profile photo.
You have to set user's password to be able to login as him
Use his profile email address and password to login - it is also possible from Your app
You can create a dummy account but this is against FB policy and FB really does everything to make it harder to You :) This is not an option. Use test users.
If more info is needed on the topic - see my article, regarding test users strategy.
All the detail see on the official FB page
See an open bug in facebook. You can't login as test user with native Android app, but login with m.facebook.com should work
https://graph.facebook.com/me?access_token=ACCESS_TOKEN
where the access_token is the token from when the user approved your app. Found it here.

Categories

Resources