The notifications permission is shown exactly after authentication, I need to request permission on another specific page

FluttlerFlow is very frustrating for simple things, as it makes them very complex.

Problem:

The notifications permission is shown exactly after authentication, this has two problems: It violates IOS policies and second, and more importantly, it causes the screen that is shown immediately to not work well on Android, it never loads the data or the rules of the flow.

I want to correctly implement this call to notification permissions in a custom action on a different page.

I need to call these "functions" (the problem is that they are not functions) correctly at another time manually through a custom action:

  final authUserSub = authenticatedUserStream.listen((_) {});
  final fcmTokenSub = fcmTokenUserStream.listen((_) {});
5
3 replies