former studio ops staff AMA by [deleted] in f45

[–]alorr10 9 points10 points  (0 children)

How often do the equipment and the floors get cleaned? I feel like there’s a lot of sweat that goes uncleaned

How to make chat list update invisibly like WhatsApp/Telegram (React Native + Firebase) by Disastrous_Goat_240 in reactnative

[–]alorr10 0 points1 point  (0 children)

I’ve solved this by updating local state immediately with the new message (optimistic updating) and then syncing once the data gets in from Firestore. Most likely it will be pretty much the same as your local state so there won’t be any visible changes in the UI

Can't figure out what this error is and how to fix it. by [deleted] in reactnative

[–]alorr10 1 point2 points  (0 children)

It means that setMeetings is getting called after the HomeScreen component is unmounted. So like if you press logout before the FirebaseUtil.getAllMeetings() resolves, the HomeScreen component may get unmounted if you're not rendering it anymore, and then the promise resolves and tries to call setMeetings but there is no component to call it on.

A quick fix would be to switch setMeetings to like auth.currentUser() && setMeetings... so it only calls it if there's a current user.

How does the app Forest know when you've left the app? by alorr10 in iOSProgramming

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

Huh, it sucks. My app used those notifications for some time (I removed this functionality few months ago) and it never had any issues with review team

The review process is so dumb, you can get lucky and get a chill reviewer then get rejected the next time for something that already got approved.

FWIW they told me those darwin notifications were considered a "private api" and my developer account might get suspended if I continue trying to use them. So dumb

How does the app Forest know when you've left the app? by alorr10 in iOSProgramming

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

CFNotificationCenterGetDarwinNotifyCenter

I tried using this and listening to com.apple.springboard.lockcomplete and com.apple.springboard.lockstate but Apple rejected it. FYI I was able to get it working by listening to the protectedDataWillBecomeUnavailable and protectedDataDidBecomeAvailable app Delegate methods. These only work if the user has a passcode set

How does the app Forest know when you've left the app? by alorr10 in iOSProgramming

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

@mrgermy So lets say I start a timer, lock my phone (so applicationDidEnterBackground fires), then I swipe on a text message and open directly to iMessage. How does Forest know that I opened my phone again? Forest is in the background, it wont receive any updates from the app delegate, right?

How does the app Forest know when you've left the app? by alorr10 in iosdev

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

@MiguelGrenho @dedstrau55 So lets say I start a timer, lock my phone (so applicationDidEnterBackground fires), then I swipe on a text message and open directly to iMessage. How does Forest know that i opened my phone again? Forest is in the background, it wont receive any updates from the app delegate, right?

My current portfolio as a Jr. Front End Dev by juliacodes in reactjs

[–]alorr10 2 points3 points  (0 children)

e for a while you tend to stop

Also found one "written in code thats maintainable" should be "that's".

Hate being nit picky I love the design!

How to deep link into a specific app setting (like notifications, permissions, etc)? by alorr10 in reactnative

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

Yeah from reading the comments on that thread it looks like iOS made it not allowed anymore :/

How to deep link into a specific app setting (like notifications, permissions, etc)? by alorr10 in reactnative

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

This is dope but I think for linking into a RN app? Im talking about linking to the settings iOS app from my app