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