HomeHow to
Bootstrap

A step-by-step guide to push notifications in Bootstrap

Enhance your Bootstrap app with push notifications. In this article, we'll cover the steps to integrate the Web Push API into your Bootstrap project and send push notifications to your users.

A step-by-step guide to push notifications in Bootstrap Logo
Large cover image for A step-by-step guide to push notifications in Bootstrap

Step 1: Complete your Bootstrap project

Progressier allows augmenting your Bootstrap web app with additional functionality, including push notifications and PWA installation. You can add Progressier to your project once it's ready to go and your app is available at a custom domain.

Step 2: Set up your Progressier account

Progressier is a no-code tool that lets you quickly add new features to Bootstrap web apps without any programming. It typically takes just a few minutes to set up Progressier with a Bootstrap app.

If you haven’t done so already, create your Progressier account. It comes with a free trial (no credit card required!) so you can test all features free of charge for 14 days without risk.

Step 3: Turn your Bootstrap project into a PWA

Progressier will turn your Bootstrap project into a PWA. Enter your app's name, tell us how it was built (you might want to choose Bootstrap when prompted) and copy-paste your app's URL in the Domain field.

Step 4: Complete your onboarding

After logging in, you'll be prompted with a series of tasks to complete to finish your onboarding. Tasks are easy and include uploading your logo, setting up your Bootstrap project correctly, installing your app, and sending a test push notification

Step 5: Navigate to your app

Click on the in the URL bar to open permissions. If you followed instructions correctly, notifications should be authorized on your domain.

Step 6: Notify your device

Our Push Composer allows you to compose a notification, select a specific group of users of your Bootstrap app to send it to, and even schedule its actual delivery from 15 minutes to 14 days in the future.

Step 7: Connect your user data (optional)

Sending the same notification to every user for marketing purposes is one thing. Sending notifications programmatically to a user to react to events in your Bootstrap app is another. Luckily, Progressier comes with a solution for both use cases. Simply connect your user data (e.g. a user ID or user email), then call our Push API in your server-side code to send a push notification to a specific user. You don't have to manage push subscriptions on your end.

Pros of adding push notifications to your Bootstrap app

Boosted conversion rates

By delivering personalized and targeted messages to users, push notifications can help increase conversion rates and drive sales. For example, if you have an e-commerce app, you can send push notifications with special offers or discounts to entice users to make a purchase.

Improved user engagement

Push notifications can help keep users engaged with your app by delivering timely and relevant updates and information. This can be especially useful for apps that are used infrequently, as push notifications can help keep the app top-of-mind for users.

Driving traffic to your Bootstrap app

Push notifications can provide users with a reason to open the app, which can help drive traffic back to it. For example, if you have a news app, you can send push notifications to alert users to breaking news stories or other updates.

Weighing the cons of using push notifications in your Bootstrap app

Unlike native apps, not every browser and device supports push notifications. So you can't entirely rely on this feature to deliver important messages to users.

Use notifications with restraint as some users find them intrusive and/or annoying. Also, instead of using push notifications as a marketing tool, consider using them to provide value to your users. For example, you could use push notifications to alert users to new features or updates or to remind them of important tasks or deadlines. This can help build trust and engagement with your users.

What are the best push services for Bootstrap apps?

Here are some popular examples of push services Bootstrap app owners like to use:

- Firebase Cloud Messaging (FCM): The free push messaging solution developed by Google. It's completely free to use but is fairly limited when it comes to sending personalized push notifications

- OneSignal: This is a cross-platform messaging service that supports Android, iOS, and web platforms. It offers a range of features, including segmentation, A/B testing, and support for multiple languages.

- Progressier: Progressier is a PWA toolkit that allows developers and no-code makers to effortlessly send push notifications for marketing or targeted messaging purposes. It is built specifically for web apps and may not be the best option for websites or native apps.

- WonderPush: WonderPush is a cloud-based push notification service that enables developers to send targeted messages to their users on various devices.

Creating your own push service

If you prefer to build your own push notification solution, this is also possible, although it will take you a lot more time and effort. I've written about the process of creating a complete push solution that can scale to 1 million users with Firebase. A push service has these components:

1. Prompts to allow push notifications: the first step is to ask users to allow notifications in their browser. There are several ways to do this, but it often involves building some custom UI

2. A database to save push subscriptions: a push subscription is essentially an API endpoint. When a user allows notifications, you need to save this endpoint in your database with additional information about the preferences of that user. This can be topics or a specific user ID or email.

3. A push composer: composer the content of the notification with a title, body and the icon of your Bootstrap app. Then make a POST request to that endpoint.

4. A push queue: send the payload of the push notification to the API endpoint of a particular subscription, and they'll receive your notification.

Which devices and browsers are capable of receiving push notifications?

- Windows/Chrome
- Windows/Edge
- Windows/Firefox
- Windows/Opera
- macOS/Firefox
- macOS/Chrome
- macOS/Edge
- macOS/Opera
- Android/Chrome
- Android/Samsung Internet
- Android/Firefox
- macOS/Safari (Safari 16 on macOS Ventura or higher)
- iOS/Safari

Your app here

Enhance your app with push notifications

Streamline the process of adding push notifications to your Bootstrap app with our toolkit

Get started See plans