Push Notification Opt in

Hey Community, is there a way to allow for users to opt in to receiving push notifications in the app? And then to only send to users who opted-in? If so, is there a way to do this without requiring them to log in with firebase authentication? Thank you for any ideas and suggestions you might have.