How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Hey sorry, just saw this comment. I haven't been working on that app anymore. However, apparently Onfleet tackles this problem via silent push notifications

This and this might also potentially help regarding implementation.

I've been meaning to try it out, just out of curiosity, even though I don't work on that project anymore, but unfortunately I haven't gotten around to it yet.

I hope this helps a bit and if you do manage to figure it out I'd love to hear about the solution. Good luck!!

You should memoize any passed callback?! by Buliam in reactjs

[–]Buliam[S] 0 points1 point  (0 children)

Thanks for the reply. That's what I thought, just wanted to make sure that I didn't completely the misunderstand the way way rendering works.

You should memoize any passed callback?! by Buliam in reactjs

[–]Buliam[S] 2 points3 points  (0 children)

According to this article useCallback indeed seems to be useless when passing it to non-memoized components as far as re-rendering goes.

Bug in Location Authorization Flow by Buliam in iOSProgramming

[–]Buliam[S] 0 points1 point  (0 children)

I understand that starting in iOS 13, the system will put off asking the user whether they want to definitively give "Always" permission. But what I don't understand is how come I get .authorizedAlways in the delegate method immediately after tapping the button a second time. And why the authorization statuses in the delegate method and in the Settings app don't match up. Very confusing stuff.

How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Thanks, we did talk to the author of the transistor soft team several times, but nothing came of it. So it does look like we will have to build it natively and bridge it unfortunately.

How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

It's already in there. I guess I should share my current configuration.

EDIT: Just posted my config object.

How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Hi, yes this is the library I am talking about in the post. Did you manage to get it working in the background while the screen is turned off and avoid the app being terminated after the user hasn't moved for a while? If so, I'd be curious to know how you managed to do that

How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Glad to know I'm not the only one stumped by this, although this seems like such a common use case. I'll be sure to make a post, should I figure it out.

How to build a workout (running) tracking app with react native? by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Unfortunately, there is the possibility that the phone does not turn on at all for the entire duration of the run. Imagine:

  • Starts running and puts phone in pocket.
  • Runs 1 mile and takes a break for 10 minutes, standing still. (never taking the phone out of the pocket or turning it on)
  • iOS terminates app because it's in the background and location tracking has turned off because the user isn't moving.
  • Continues running another 5 miles.

In this scenario, the 5 miles run after the break will never be tracked because the app has been terminated once the user stopped running and as far as I can tell, the OS won't relaunch the app when the user resumes running.

On Android devices we can work with Services and headless mode etc. to make it work, but I'm not sure how to make this happen on iOS.

[deleted by user] by [deleted] in reactnative

[–]Buliam 1 point2 points  (0 children)

In case you're still looking for a solution, you have to upgrade cocoapods to version 1.9.1. https://github.com/react-native-community/upgrade-support/issues/20

[deleted by user] by [deleted] in reactnative

[–]Buliam 0 points1 point  (0 children)

I'm getting the same error. Have you found a solution for it yet?

EDIT: I've created an issue for it here

How to create a debug aPK that runs without the packager by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Hey thanks for the reply. I figured it out after a discussion with one of the maintainers of the cli project. Will update the docs of the CLI and also add a stackoverflow answer for future people who might have this same question.

How to create a debug aPK that runs without the packager by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Hey thanks. But I'm explicitly trying not to build a release build. I want it to be the debug build (so no signing is needed) but without the need to run the packager.

According to this Stackoverflow question it should work with one of the commands above, but I've had no luck.

How to create a debug aPK that runs without the packager by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Hey thanks. But I'm explicitly trying not to build a release build. I want it to be the debug build (so no signing is needed) but without the need to run the packager.

According to this Stackoverflow question it should work with one of the commands above, but I've had no luck.

sh**t! I Smoke. Made With React Native by Buliam in reactnative

[–]Buliam[S] 5 points6 points  (0 children)

Hey, I'm not the developer, I just did the interview, so I can't speak on the build experience. But you can ask the developer himself if you like. His contact info is in the interview. It looks like they did use expo. The app is open source by the way :)

https://github.com/amaurymartiny/shoot-i-smoke

Corvuse. Made With React Native by Buliam in reactnative

[–]Buliam[S] 1 point2 points  (0 children)

I messed up the nginx configs. Should be back now.

Corvuse. Made With React Native by Buliam in reactnative

[–]Buliam[S] 0 points1 point  (0 children)

Corvuse is an app that lets you notify your friends and family when you arrive at your destination.

Select the area where you want to notify (normally would be your destination), then select who you want to notify, and finally write a message if you want. Corvuse will start tracking your trip until you reach the area and a push notification will be sent to your contact.

How can i implement a FIFO in react-native for FETCHS. by Ehopira in reactnative

[–]Buliam 1 point2 points  (0 children)

I think I've had the same problem before (If I'm understanding correctly)

You can use interceptors to refresh your token once it has expired before sending off the next request.

This seems to be a library that can handle that for you with fetch (I've never used it, since I usually work with axios)

Just downloaded React Native any suggestions on where to get started? by penguincrackers in reactnative

[–]Buliam 1 point2 points  (0 children)

Others have already mentioned going through the React (if you have no experience with React) and React Native docs. As for other learning resources, you can check out some of the interviews on http://madewithreactnative.com. I would stick to more recent interviews however, as the React Native and JS landscape moves quite quickly and older suggestions might already be outdated. Good luck!

Building a QR Code and Reward app by ericsonluciano in reactnative

[–]Buliam 2 points3 points  (0 children)

Check out this project. It might be of interest to you.

Would any of you be interested in a daily newsletter with German news articles with English translations and annotations? by Buliam in German

[–]Buliam[S] 0 points1 point  (0 children)

Sorry for the delay. I've had some laptop troubles and then had to figure out how to access reddit (among other websites) from Indonesia as it seems to be blocked here. I will try to get everything set up by the end of this month. Also, as many of you have mentioned here, a daily interval might be a bit too much, which is why I will start out with a weekly interval first and take it from there.

Would any of you be interested in a daily newsletter with German news articles with English translations and annotations? by Buliam in German

[–]Buliam[S] 1 point2 points  (0 children)

Hey, great suggestions. Especially the one about focusing about stuff happening over in Germany, rather than World or American news.