Page still in construction, check the rich tutorial and our sample application for more info!

Integration

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

Here is an example code snippet:

import SwiftUI
import LaudspeakerCore

class LaudspeakerManager: ObservableObject {
    let laudspeaker: LaudspeakerCore
    
    init() {
        laudspeaker = LaudspeakerCore(url: "https://laudspeaker.com/", apiKey: "[YOUR_KEY]")
    }
}

After that you need to connect:

laudspeakerManager.laudspeaker.connect()

At this point your app should be able to receive push messages!

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, and follow the same steps (just without an image) as in the rich push tutorial