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.
Go to Settings > General and make sure Expose the option to add an ID attribute to HTML elements is enabled
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
tocurrent-user-email
.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
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.