React Native Expo autofill field with current system user's email - react-native

I want to autofill a TextInput with the user's current Email from the Android/iOS system. However, at that point the user is not yet authenticated, because that's actually part of the registration (where users can also use a different Email).
How do I get this email?
I checked the permissions page but there is none of them about the user credentials like email.
I also checked expo Contacts but it seems to be related only to the contact lists and not about the current system user.
Is this even possible with RN+expo?

Related

Autofill Username and Password for multiple users in react native?

I'm creating a simple app in which I'm saving a session of a current user using a token. Once the user login and close the app next time user will go to the home page. But If the user logs out. Next time will go to the login page and now if the user enters the initial characters of the name. I want to automatically get his/her name and password and fill in the form like in browser and web apps
Any help?
If need more description. let me know in the comment section.

Manually approving the account in shopify after registration

Whenever the user register on my Shopify website i want that account to be disabled until admin enable it from back-end panel. Currently when user is registered, his account is enabled by default.
Have searched various forums even tried Shopify support but still no luck.
There are two options. why you are not putting "request membership" sign up form instead of sign in form (disable from here)? You could use the contact page for that if you wanted. Then you get an email when they fill that out. You would create the account (just copy and paste the info) and email them an invitation. They click the link in the invite to make the password. (I think it will be a tedious task for you)
Otherwise, let them create the account, but hide the pages with the Locksmith app. Then after you approve them you would apply a "tag" to the customer account so they can see the pages and products locked with Locksmith.

How to implement logout functionality in react native?

As i'm trying to develop an app in react native , i want to implement logout functionality.Now i found a problem that for every user who is logging, the name,and details appearing in their profile is same for each user.I'm using asyncstorage for setting unique id.Now i'm trying to unset this session using
Asyncstorage.removeItem('key_uuid').Do i need to write this in a separate js file?I don't know actually where to give this code in my project.Sorry can anybody help me to figure this out?
It is simple implementation, on login you need to save some logged in user information as to check weather a user is logged in or not.
You canprovide logout button anywhere in the app, and on clk of that you can clear your asyncStorage or remove only user info from storage.
And when user opens your app you can check user in asyncstorage.

Bigcommerce app submission - user flow requirements

I'm hoping that a Bigcommerce rep can answer this. I had some trouble accessing my Bigcommerce store to get my support PIN so I'm posting here.
I am developing a Bigcommerce app and am wondering if the Bigcommerce user must automatically be logged into my app when they open it in the iframe, or can the app display a login page inside the iframe when it opens?
I've seen some apps first display a signup page for the user to fill out, and I was planning to also first display a signup page for the user to create an account inside the app, then ask them to log into the app on the next session. Is this allowed, or do I need to implement OAuth in a way that allows the Bigcommerce user to log into my app based on their store during the app load?
Thanks

Facebook Registration Plugin prefills fields without permission?

My understanding was that the registration plugin allows you to use the same reg form for users not registering with Facebook as well with Facebook. However, if a user is logged into Facebook and visits the registration page the form prefills information and only gives them the option to register with Facebook. That's kind of a freaky user experience. They hit the register button on your website and it auto fills fields with Facebook info without permission. Just because a user is logged into facebook doesn't necessarily mean they actually want to create the account with their Facebook information.
Here's what I have handled so far by the registration plugin:
User is not logged into Facebook and registers via the plugin, but with my site authentication not Facebook.
User is not logged into Facebook, uses the plugin to log into Facebook, fields are prefilled and user registers via Facebook.
Here's what I dont have handled
3. User is already logged into Facebook, but may want to register with my site authentication and NOT connect the account to their Facebook account. Currently, it prefills the forms and provides them with only a register button connecting Facebook to my app.
Basically, I want the user to have to opt-in to register with Facebook even if they are logged into Facebook, but I want to use the Registration plugin form. Is this possible?
I hope that makes sense.
A user can clear the fields by ckicking the X when mouseover the name field
What you need to do is something similar to Scribd approach, where you can by default wrap and hide the "Login with facebook" button (or the registration form if the user is already logged in and connected!) and for example in your form div/container have a checkbox (a location over the flow is preferred) stating:
Register with my Facebook account
Or something more catchy and when the user clicks/checks the input the facebook DIV will slide down and used instead of your registration routine.