I am making an android application.To use my application user has to first create an account on a web server.He/She will be provided user id and password while creating Account on that web server.After that when he/she try to install my apk from Google play or from SD card,he/she will be asked to provide that user id and password that is given from that web server.If he/she enters correct user id and password then only my apk will be allowed to install on user's android device else my apk will not be installed on his/her android device.How is it possible?Any help will be appreciated.
I am not sure you can accomplish exactly what you want. I have never heard anything about a protected password .apk.
A possible workaround would be to not upload your app to google play store, making the only possible way to download it through your server. There you can postergate the download of the app behing the user registration.
In addition, you can also implement some code in your android app to ask for some credentials in the first launch (obtained in the registration process), and if thery are not provided, the app doen't let the user have access to its services.
There are multiple combinations.
Hope it helps!
You usually don't protect the installation process, but the sign in instead. When user starts an app, he'll be prompted to enter credentials. What you describe doesn't make any sense. Just take a look at other apps(Whatsapp, Facebook, Gmail etc.)
Related
Google recently removed my app from the App Store. I was asked to provide login access to my app for them to review the app "In app experience issue".
My App is using phone number authentication, I believe if Google wants to access my app they can login with any phone number, provide the authentication code and gain access. But I was asked to provide the login details, the problem is if I give Google just any registered phone number, it will still ask for a phone authentication code to login.
How can I add a default phone number that will not ask to provide authentication code tat will login the user. My app is built with android studio and firebase as backend.
Or is there anyway I can provide google with access to my app, that wont request authentication?
You should make one number (preferably a phone number you own) always take the same authentication code (OTP).
ideally this should be done from backend, but if it easier for you, you can make it hard coded into your app, like the following pseudo code:
if(phoneNumber == 001xxxxxxxxx)
then if(userInputOTP == 1234) then isOTPCorrect = true
For my app, users are invited by email to join.
Currently, the link in the email is opening the web-browser to a page where the user creates his password. Then, the user has to install the app, open the app, and log in with his email and the password he created.
I am trying to make the process easier. I am thinking that in the invitation email, the link can point to "an app link". I know iOS has "Universal Links". The app will most probably not be installed, so on iOS, it will open the App Store app to install the app.
I am thinking to create the registration process in the app. But the issue is after the user installs and opens the app, the "app link" is lost.
The "App Store" app does not pass the original link to the app when the user opens the app first time after install.
Without the information from the link, I am not able to know in the app the email for which the user needs to create the password. I could ask the user for email also, but I was hoping not having to ask him about that.
I guess it's the same for Android.
Any thoughts how to make sign-up process easier?
EDIT: I chose a correct answer but to anybody who might be looking for an answer, I don't think Firebase or anyone else has a 100% reliable way of making a connection between the device where the link was clicked and the device where the app is installed. All the libraries are using some accuracy value and asks you to check it in code. If you think about it, it makes sense, because when the link is clicked and gets open (and that can be in any web-browser app) the JS code needs to compute some hash of the device and it will try to compare it to the hash of the device computed by the app's code when app is open after install.
You can use Firebase Dynamic Links to achieve this.
Please refer Firebase Dynamic Links
i think you have to use Webview for this
You can do this with Appsflyer SDK.
Checkout the documentation https://www.appsflyer.com/blog/app-installation-referral-conversion-tracking/
Use case:
User launches app
The user enters google password
The app lets the user to use the app if the google password entered was correct.
I don't want to provide yet an other password registering option to my users. I don't want to know my users' passwords either. It would be great if I could use the Google login(or other common login, like Facebook, etc...), just like it is possible to provide a Google login with OpenID for webapps.
Additionally: Is it possible on iOS?
Any ideas?
Please see Google Open ID for the same.
I want to develop an app that help users to start up other apps which needs username and password,so I must start up other apps and help to fill the username and password into the login userface of the apps,
for example,I want to start up an app that helps user to login the facebook and fill the username and password in the login userface of the facebook app in my app,now I only konw the name of the facebookapp,
1.how to start up it in my app?(I don't know the package name of the app started up)
2.when I have started the app,how to automatically fill the username and password?
You probably don't.
AFAIK, for example with HTC's "Sense", Facebook credentials are stored as a sync account in the accounts api.
Since I think it is not encouraged to override common Android use cases, you will have to find out which Accounts they are storing.
For this, try to find out how android.accounts is working. The SampleSyncAdapter deluivered with the SDK dev sample applications also is a good place to start.
I want to design an android app for a website
The app will be downloaded through a unique link from my server
I want each user to download the app WITH HIS USERNAME LOGGED IN ALREADY FOR HIM
Is there a way to do that with an android app?
My aim is to let my users download an app and find themselves logged in without having to do it themselves
In order for the app to be installed pre-aware of the credentials, you're going to have to have the website you're having them download the app from be wired up to compile a custom version of the package for each user.
Is it really that necessary for the user not to have to log in once and then have credentials remembered from that point on?