Unexpected Null Value error - Push notifications

Troubleshooting

Hello there,

For my new users, I am getting

"Unexpected null value

The relevant error-causing widget was: StreamBuilder

Stack trace:

dart: sdk_internal 11914:11

throw dart:sdk_internal 12286:30

nullCheck packages backend/push_

_notifications/

push_notifications_util.dart.js

10937:181

<fn>

packages backend/push_notifications/ push_notifications_util.dart.js

16828:23

<fn>"

Tried almost everything.

I understand that this is when a null value is passed to some function that expects a fix value, but I am not doing this, or atleast not able to identify where this is being triggered.

I am not checking any values for push notifications or setting them on the page that gives this error.

Can anyone please help me resolve this?

Thanks in advance!

What have you tried so far?

I removed all the blocks that checked for permission (they were not present when the app was running fine), instead, using local state like I was using earlier, still facing this error.

Did you check FlutterFlow's Documentation for this topic?
Yes
4
1 reply