Mobile Push notification permission

Hello,

I want to ask for notification permission only when user is logged in and so the Home page is loaded and current users Device Token is empty.

I was wondering if my WF (image below) was achieving this, because I think in my case, if the current user logged in with another device, the permission prompt won’t appear if he already accepted on his first device.

Do I really need to add this “Only when” statement on step 1 or Bubble is smart enough to ask permission only if this devices notification token is empty?

Your workflow logic is incorrect. Device tokens are device-specific, not user-specific.

Bubble’s “Request permission for push notifications” action automatically checks if the current device already has permission. If permission exists, it retrieves the existing token without showing a prompt. If no permission exists on this device, it shows the permission dialog.

Remove the “Only when Current User’s Device Token is empty” condition from Step 1. This condition is flawed because:

  • Device tokens are tied to devices, not user accounts
  • A user logging in on a new device needs permission regardless of other devices
  • The same user on different devices will have different device tokens

Correct workflow:

  1. “Request permission for push notifications” (no conditions)
  2. “Make changes to Current User” - Device Token = result of step 1 (keep your existing condition)

Bubble handles the permission checking automatically. Your role is just triggering the request and storing the returned token.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.