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: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:
After that in your main activity you can use Laudspeaker like this:
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!
