I would like to have a fake android account I can use for testing adding/deleting/merging/referencing contacts. In my searches, I'm a little surprised something hasn't turned up. I am new to the android scene. How do people normally go about this?
Thank you.
You can use the android emulator that comes with the SDK, that is about it unless you are willing to use your own device.
I'm not sure if the android emulator allows access to contacts though.
For testing, you can just create another gmail.com account (e.g., mytestaccount#gmail.com) and use that to sign in on the emulator (or test device, if you have one). Remember to sign out of your current Google/gmail.com account so you get the "Sign up" option on the Gmail page.
Related
I have a flutter app that is designed to be placed as a fixed camera and based on what it sees give commands for IOT purposes.
To prevent it from sleeping, I am using a library called wakelock. (https://pub.dev/packages/wakelock)
Unfortunately, this doesn't prevent another issue, Google Prompts. When I log into my developer account on my laptop, the development phone is taken over by the prompt asking "Are you trying to sign in?"
I don't really want to have the solution be to log out of google on the phone, since the app is downloaded and updated via the play store.
I also don't want to disable 2F authentication, just don't want it to take over this developer phone, it's fine if it does so on my personal phone.
So a google settings solution, or a flutter code solution would be really helpful, have been able to find neither.
TLDR: I tried having the android phone as a 24/7 IOT camera with my flutter app, and was expecting it to stay on, but it was interrupted by the Google Prompt.
The easiest solution seem to me to set up a separate google account; this way the app could continue to be updated from the Play Store without being tied to your personal account, so you shouldn't receive 2fa prompts.
Another thing that might help is "Pinning" the app, which doesn't allow the app to be exited without authentication.
If neither of those work, a more advanced option could be to set up the phone with device management and use the lock task mode, but the work involved with setting that up is probably prohibitive for your use-case.
I am creating an iOS and Android App and I want to create a screen where the player can start with a guest account or can connect his account with our own accountsystem.
But my question is: Can I detect a user after the app was uninstalled and installed again?
I know that there is something like the vendor. But this will change.
I know that other apps also can do this.
With the user's permission- have them log into an account. Or provide you with their google of facebook account info. So far as hardware ids, those are discouraged and actively being removed to prevent people from the API to prevent this.
Also remember- that unless the user logs in with an account, you don't really know whether it is the same person. You could know its the same phone, but you don't know if he gave it to his kid sister to play on. Or sold it when he got a new one, and now you've given the new owner access to someone else's account. Also, if you rely on hardware ids you won't know its me when I buy a new phone and download it on that.
So yeah- either have him log in with a username and password, or use a 3rd party signon mechanism like Google or Facebook.
For iOS, there is a recommended approach to do that: by using the DeviceCheck framework. The idea here is that it allows you to persist 2 bits of data across app installations on each device. You can set the first bit to 1 if the user has already installed the app or 0 otherwise. And use the second bit, for example, to check if the user has signed in or not.
The official documentation is pretty good, please check it out.
The downside of this approach is that you will also have to do some work on the backend side.
UPDATE:
If you specifically want to detect the account, there is no reliable approach. One of the options is to use identifierForVendor or generate some kind of device fingerprint (for example, by combining the device model, timezone, locale, etc.), but of course, this will not work every time.
Uniquely identifying a device is a security leak, and all platforms are putting serious restrictions on unique persistent identifiers because of privacy concerns.
Under 'App review' there's an option to make your app public. Right now it says 'No' and 'Your app is in development and unavailable to the public'. What happens if I switch it to yes though. Will my friends be able to see the app i'm working on (I don't want that). So how do I keep my app development private, but at the same time be able to use it's features. Because as I'm aware, I have to turn 'Make app public' to 'on' in order to utilize Facebook login for my app.
No your friends wont be able to see the app you are working on. Making your APP public is for your clients to use it's features and not just the developer.
It means you are in development mode now. If you make it public, then only you can access your login from other devices. And this does not say to post your wall or mention your friends.
while an app is in sandbox mode/development mode, so “not live”, only
the users added as admins, developers, testers to the app can use it
and see content that was created through it. Only when you put it in
live mode, every user will be able to use it and see content made via
it.
I've an Android application with Google login, to test this application and do login, in a Virtual Device Emulator, i've added a personal account in that Emulator.
Question is: Can i add a test account instead of my personal? (but i have to create that, and in creation process Google ask me my personal phone number...)
Do you usually create another account or you use your personal?
You can use your personal account, thats ok, all the developers i know and me always use this way.
Or do you have some problem with this?
I'd like to use someone else's (Nexus 7) tablet for some development and testing, however it seems that the normal method of enabling developer mode only works for the 'owner' user. I could use the owner's account, but I'd rather it were possible to use my own.
Seems fairly straightforward that what I want is not allowed (perhaps it would be possible with some rooting and fiddling, which I may or may not bother with on this device).
Is this documented anywhere?
Yes. Enable whatever developer settings you want as the main user; then it will be the same across all users (at least, this is what worked for me). Note that often if you are connecting to something there will be a prompt on your device asking if it's okay to connect to the computer/application. You need to switch back to the main user to accept the prompt, then it should work on all users
If the developer settings is enabled by the admin user, then it is enabled for other users as well. If you have a debug version of the app on the device before creating a user, then remove the app and debug it again. If you dont remove the app, it will fail to install apk and start activity in other user.
Hi I had the same problem using two Galaxy Tab A tablets
On one I could debug using a guest account on the other not. I found that the difference was this
Logging in as the owner and attaching the debugger it asks to enable debugging.
There is an option there to say always allow this computer to access.
Clicking this and then changing the account lets you debug while using the
guest account.
Isn't "clicking the Build Number 7 times" all that is required to activate developer options (and checking enable usb debugging)??
I don't think anything else has any impact on being able to use a device for development...