Skip to main content
Make sure you followed the installation instructions first, before proceeding here. You must have imported, and installed firebase first as well

Integration

To use Laudspeaker you need to import and install Laudspeaker, and then initialize with the right endpoint, and api key. You can find your api key in Laudspeakers settings page.

Initialize Laudspeaker

You can initialize laudspeaker in a few ways.

Direct Initialization

You can import the following in your application class:
and add the following before your onCreate method in your Application class.
Then in the onCreate class:
A full example is as follows:

Dependency injection approach:

In your AppModule.kt file, you provide the information to set up Laudspeaker correctly. Specifically you need to grab your api key from the settings page:
app_module After that in your main activity you can use Laudspeaker like this:
At this point your app should be able to receive push messages! If you want to see a sample application implementation go here ()

Testing

To test, you will need a real device, and access to its firebase device token Then go to the template page and create a push notification, go to the test page, and select the device firebase token and send a push! push_temp firebase_icon