Does anyone know of some unwritten rule on how to get iOS app to request notification permissions?

The reason I ask is I found out recently that the open url flow function will not work when you have multiple flow functions and there are other little quirks in AppGyver nobody willl tell you about. I was just wondering if anybody knows the secret sauce to get the iOS request notification permissions flow function actually working?

if you will follow the instructions in the doc below (to the letter) it should work for you.

iOS is not so problematic like android (at least for me). Just get the “Request notification permission” and “Get device token (beta)” from the market place and use one after another. Output of the 2nd one will give you device token that you will then use in your push notification server to send notification to device.


  1. You have to have all the certificates created in the right way (check the doc) and connected to your push notifications server.
  2. It will only work if your app is build and deployed to the device via iOS TestFlight for example.
  3. It won’t work in the preview app.

I got iOS working with OneSignal without need of firebase, but no luck with Android so I’m using firebase as notification server for both iOS and Android now. It’s working and I followed the appgyver doc.


I have it set up just like that. I had it working fine for Android and ios until appgyver updated their runtime. I had to edit the app to fix something unrelated. The only thing I changed was in the same screen I placed a dark mode true item to local storage so that it would remember they have dark mode when the app is launched again. I kept all my profile a and apns the same and updated the app and haven’t been able to get ios notifications or even get the request notification permissions to return true no matter what I do. What’s crazy is the app doesn’t even show in my device settings as even requesting notification permissions. It’s not even in the list of apps that have dependencies for notifications. So I am wondering if there is some conflict with the set item to local storage flow function being used on same screen.

It still works fine on Android though. Let me ask you do you use apn auth key or certificate in firebase console?

I was using the key method at first and it was working fine.

just for the benefit of anyone reading this, I switched the “check notification permissions” flow to fire after the “request notifications permissions” flow and it started working again. just another one of those secret hidden nuances in appgyver I guess.