I need all users' step count of my app.
And even when users don't open an app, this keeps counting user's pedometer and that data should be counted and applied in app when app is opened.
For this,
expo-pedometer is possible ? and Google Fit also provide this ?
I don't want to ruin my app when I install all of them.
But each library's scope is not explained in detail.
For this purpose, How can I approach in React Native?
there I need your help on I am made a chat app in react native. I am using firebase push notifications, notifications work perfectly with what I want to change some designs like WhatsApp.is there any idea how can i change it.
my notification.
to this
I am successfully able to receive push notifications in my react native app but I am unable to make a redirect based on them. when I click the notification, the app completely reloads and the notification data is lost. How can I handle this?
I am using below functions
**Notifications.addNotificationReceivedListener(this._handleNotification);
Notifications.addNotificationResponseReceivedListener(
this._handleNotificationResponse
);**
Can anyone help me for manage kill event in expo
NOTE: Several questions are there with this topic but non of them matches my requirements.
I am somewhat new to react and react native (not to programming) and trying to create an application with below tech stack.
react-native
react-navigation
Expo
Context (Read if you feel so):
I was implementing login with twitter which is done on my backend server.
User clicks on a button in the app. It opens the WebBrowser (given in expo docs).
Authorization screen appears and user fills and authorize my twitter application.
I have used my server's URL as a callback in my twitter application so twitter finally redirects user to my server.
But to save the information namely access key and secret i need some user information as in who the user is.
An alternative approach could be that callback should be a deeplink redirecting it to the app providing access keys and secret and then my application makes a post request to my server.
In nutshell, i want to implement deeplinks in my application. There are so many articles and docs in react, react navigation and expo and i have read them almost 100 times and really got confused.
It would be great if someone can tell me what are the exact steps for deep links with react navigation, react native and expo
I'm a Java Android developer and been experimenting with React Native lately. What I've been looking into is something similar to the navigation as that of Android Java code.
First, I want to get to SplashScreen. Then check if the user is logged inor not, then take the user into the app or to the login screen.
Now, to achieve this, I need to know if the user is logged in. How do I do that? I don't want to maintain global variables in index.js nor do I want index.js to be the central routing system. Can I store somewhere a flag that says that the user is already logged in, and what's the access-token of the logged in user?
I'm able to visualize this well in native Java code, but failing to figure out how to do in React Native.
In my React Native app, I store all my data in a Redux store. So, when the user initially puts their username and password in the input, I send it up to the server which then sends down an access token. Once I receive the access token, I store this in the Redux store. Therefore, if the user returns to the app later, I just check the Redux store to see if the access token is present. If it is, I know that the user is logged in. I check for the presence of this token all over the place in my app, and further need it for when I make more request to the server.
So to answer your question, you need some way to store the state, and for this I highly recommend checking out the Redux framework which works very well with both React and React Native. http://redux.js.org/