braze-inc / braze-segment-kotlin

The Braze analytics-kotlin integration.
Other
1 stars 2 forks source link

Does not work with push notification. #6

Open MarinaShaposhnikova opened 1 year ago

MarinaShaposhnikova commented 1 year ago

This library does not work for push notifications and in-app messaging. There is no option to set a firebase token.

toddgower-hiatus commented 1 month ago

Is there any recommendation for this? At the very least this should be included in the documentation.

bryanlogan commented 1 month ago

You can set these via XML in the braze.xml file.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <bool translatable="false" name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool>
    <string translatable="false" name="com_braze_firebase_cloud_messaging_sender_id">1234567890</string>
</resources>

https://www.braze.com/docs/developer_guide/platform_integration_guides/android/initial_sdk_setup/android_sdk_integration/#step-2-configure-the-braze-sdk-in-brazexml