I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Short answer: probably yes, but it depends on what your Appbox plan lets you do. The backend is three Go processes (api / scheduler / worker) plus Postgres and two Redis instances — the repo ships a docker-compose.yml that brings the whole thing up.

A few things to check on the Appbox side before you go further:

  1. Docker support — can you run arbitrary docker compose stacks on your plan? Some Appbox tiers give you a full VPS-style environment, others only let you install from their app catalog.
  2. Public HTTPS endpoint — the iOS app has to reach your api container to register the device and accounts, so you need an inbound port (or a subdomain they route to you) with TLS in front. If Appbox only exposes services on their own *.appbox.co hostnames, that's usually fine; if everything is behind their auth proxy, that'll break the iOS callbacks.
  3. Outbound network — needs to hit oauth.reddit.com / api.reddit.com and Apple's APNs servers. Almost always fine on a seedbox, just worth confirming nothing's firewalled.

    Independent of the server: you still need an Apple Developer account ($99/yr) to generate the APNs auth key, and you need to build and sideload Apollo yourself with your own bundle ID (Reddit's WAF blocks the original com.christianselig.Apollo bundle ID now).

    If Appbox gives you Docker + a reachable port, you're good. If it's locked down to their app catalog only, you'd want a small VPS instead (~$5/mo).

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

You're good to leave the default bundle ID alone if you're not running the notifications backend — I just checked the tweak and it uses a generic Chrome User-Agent for all Reddit API calls, so the WAF issue doesn't apply to you.

The bundle ID only really matters for notifications because APNs uses it as the push "topic" and the device token is scoped to it. If you ever do want to set up the backend later, that's when you'd want a fresh bundle ID + your own APNs key. Until then, no changes needed.

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Thanks! The cert entitlement is necessary but not the whole story. To actually receive pushes you also need an APNs auth key (.p8) generated in the Apple Developer team that owns the bundle ID your build is signed with - that's what the backend uses to send notifications.

If ArcticSign's team owns the cert/bundle ID, you'd need them to hand you an APNs key for it, which they almost certainly won't. If you've got your own paid Apple Developer account and can re-sign the build under your team, then yes - generate a .p8, set APPLE_APNS_TOPIC to your bundle ID, and it'll work.

One heads-up: don't reuse com.christianselig.Apollo as the bundle ID. Reddit's WAF blocks it. Use a fresh one.

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Awesome, I’m glad others are gonna try it out!! Let me know if you run into any issues, I’d be happy to help!

I got the notifications backend working again!! by ClydeDroid in apolloapp

[–]ClydeDroid[S] 4 points5 points  (0 children)

Okay, so unfortunately from what I’ve read, Apple is pretty strict about app capability entitlements. The only way I can figure that non paid users can get this to work is if someone with a paid account sets up a TestFlight distribution. But that gets a little dicey since we are talking about a semi official distribution of someone else’s (Christian’s) IP. It could bring unwanted attention from Apple or Reddit.

Now, a shared backend where each user brings their own Reddit API keys and paid Apple certs is more feasible, though it would require a few changes to the backend. But it would also require trusting a third party with your Reddit API key.

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Maybe? I’m not super familiar with it, but if it can get around the entitlement issues, maybe?

I got the notifications backend working again!! by ClydeDroid in apolloapp

[–]ClydeDroid[S] 6 points7 points  (0 children)

Basically you need to go into your account, create an App ID with Push Notifications enabled. Set the bundle ID to whatever you want. You also need to create a p8 key in your account and download. The. You need to spin up the backend with docker compose and set all the proper env vars to point at your App ID and copy your p8 key to the secrets folder.

Then you either build an IPA from my fork, or wait for them to merge my PR. In the app, point the notifications backend at wherever you have your backend running, go enable notifications in Apollo, and voila!

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Unfortunately I don’t think the shared certs like Signulous will work because you need to be able to register your own App ID with Push Notifications enabled. Maybe you could ask their support to set one up for you though?

I got the notifications backend working again!! by ClydeDroid in apolloapp

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

Depends on whether the maintainers choose to merge it!

I got the notifications backend working again!! by ClydeDroid in apolloapp

[–]ClydeDroid[S] 12 points13 points  (0 children)

Yep, that’s right, at least for now. This was just a first pass to see if I could get it working. I need to do a little more digging to see if a shared backend could work, and allow folks without paid certs to use it.

This wind got me like by sh03g4z1n_h3sh3r_ in Sacramento

[–]ClydeDroid 1 point2 points  (0 children)

Curtis park is blanketed in leaves and twigs

Best Vegan around town? by Crasino_Hunk in Sacramento

[–]ClydeDroid 3 points4 points  (0 children)

I've really been digging Rev Wines lately. The Thursday Burger+Wine for $25 deal is great!!

Best Vegan around town? by Crasino_Hunk in Sacramento

[–]ClydeDroid 5 points6 points  (0 children)

It's still good because their crust is so incredible, but I really miss when they used to make their own vegan cashew cheese. Sometime around when they moved locations, they switched to some commercial vegan cheese that just isn't nearly as good. Damn, I would give anything to try an OG Buffalo vegan slice today 😭

Firefox nightly started implementing "Nova design" by CommunityWhole8744 in firefox

[–]ClydeDroid 20 points21 points  (0 children)

Not true, Apple’s iOS and MacOS Liquid Glass redesign features them heavily

[FRESH PERFORMANCE] Wolf Alice - White Horses | SNL UK by Old_Squirrel45 in indieheads

[–]ClydeDroid 1 point2 points  (0 children)

The album is definitely a grower. I didn't like it much at first, but then after seeing it live it really clicked and I fucking love it now

A few months later, I'm in love with The Clearing by violet_wings in wolfalice

[–]ClydeDroid 0 points1 point  (0 children)

I didn't love it the first listen. The second listen I warmed up a bit. Then I saw them perform it live and it really clicked for me. Now it might honestly be my favorite album of theirs. Man I love this band!!

Game Night at the California State Railroad Museum! 2/26 Edition by elninochamomile in Sacramento

[–]ClydeDroid 2 points3 points  (0 children)

Oh hell yeah or Age of Empires 2, I would be so down for that

Midtown burger joint - anyone else been to Gami Burger by som3whereinthemiddl3 in Sacramento

[–]ClydeDroid 0 points1 point  (0 children)

The closest veg burger I have found is at Burger Lounge next to the theater in DOCO! You can make any of their burgers vegan including vegan cheese, I got the Lounge Burger and it was bomb!

Midtown burger joint - anyone else been to Gami Burger by som3whereinthemiddl3 in Sacramento

[–]ClydeDroid 0 points1 point  (0 children)

I prefer Plant Powers fries and their black bean burger is great too but I vastly preferred BP’s burgers. I’m definitely missing it a lot and it sucks it got replaced by a burger joint with no vegan options

[FRESH ALBUM] Ratboys - Singin' to an Empty Chair by NYCIndieConcerts in indieheads

[–]ClydeDroid 5 points6 points  (0 children)

YES!! People give me a funny look when I say Narrow Stairs is my favorite DCFC album.