Supabase and iOS push notifications (yes, again)

General Conversations

EDIT: Ignore this post. The day after I wrote it, FlutterFlow came out with the ability to edit the configuration files we needed and the nightmare is over 🦾

I know this topic has been asked about and talked about to death, but the vast majority of clients I work with get caught on this snare in a big way. Everyone seems to have an opinion, yet no one seems to know.

After seeing some pretty questionable advice on Reddit by an established Flutterflow agency today, I feel the need to bring it up again in the hopes that we can finally at least agree on the problem.

ASIDE: As some of you might be aware, I published my own solution to this issue. I used Firebase Auth. That's not an option for some who are too far along to change auth system. So I'd love to have a solution that helps those people too.

Supabase Auth does not work with iOS push notifications

When you move to Supabase Auth, you have no choice but turn off the push notifications toggle in Flutterflow. You're on your own.

As I started to research the issue, I found Xoloti's video. And James Nocode's video. They both have a similar method: install the firebase_messaging SDK and use .getToken() to grab the FCM token. Then send the the token Supabase and save it there. Fair enough. I was excited. But the token just wouldn't show itself. They never mention in their video that the whole thing only applies to Android 🤦

Turns out, flipping the push notifications switch in FlutterFlow does a lot more than deploying the relevant Cloud functions. It adds configurations to Flutter files that are not accessible in FlutterFlow, configurations that iOS depends on for notifications to work. But you can't flip that switch and also use supabase auth, that's an error in FlutterFlow and so it won't compile.

Many people talk about having to download the code and make the tweaks, then use Xcode, etc. At that point, my clients are lost. It's unreasonable to have to go down that route for the average FlutterFlow enjoyer.

So forget one-click deploys if you want Supabase Auth and iOS push notifications. And the same issue seems to be true when using OneSignal, though I didn't try that personally.

That's my analysis of the situation.

I'd love to hear other user's experience on this topic. Plenty of people have talked about it, I think plenty seem to have achieved it. Maybe I'm just missing something. I hope so 😔

4
3 replies