Skip to main content
All CollectionsIntegrations
Linking user emails with their push subscriptions in Bubble
Linking user emails with their push subscriptions in Bubble

Find out how to send a push notification to a user of your Bubble app by taking advantage of email targeting

Kevin Basset avatar
Written by Kevin Basset
Updated over 2 weeks ago

In some cases, Progressier automatically retrieves the email of the currently logged-in user and syncs it with their push subscription (if or when it exists โ€” now or in the future).

Email is the primary method of targeting for Bubble, but if you'd like to use tags instead, check out this article.

Do emails sync automatically?

It's easy to find out. In the menu, click on the number next to the name of your app.

If emails are being synced with Progressier properly, you should see an email column with emails in it.

Troubleshooting

If there is no email column or if it doesn't contain anything, add an element anywhere in your Bubble app that contains the email of the user. Progressier will retrieve the email from there.

  1. Go to Settings > General and make sure Expose the option to add an ID attribute to HTML elements is enabled

  2. Create a new HTML element anywhere in your app (but on a post-login page that users will visit often), set its content to "Current User's email" and its ID to current-user-email.

  3. The HTML of the page should look like below. Note that the element doesn't need to be actually visible on the page -- it only needs to exist in the code

ddd

4. Log in to your app, and see if the emails get synced with Progressier. If so, you're done! You can now send push notifications using our Bubble Plugin.

Still not in sync?

If emails still aren't in sync, here is a quick way to check what may be happening. Log in to your app. Then open the Developer Console and paste the following:

progressier.bubbleData.email;

If the email has been synced properly, it will log the email of the current user. Else it will log null. Contact us if you still can't get this to work.

Did this answer your question?