Skip to content

Commit

Permalink
push notifs working for android
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrellard-ledger committed Oct 27, 2022
1 parent 651773f commit 7556612
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/wet-lamps-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": minor
---

Braze Integration added to add push notifications and content cards to LLM
3 changes: 2 additions & 1 deletion apps/ledger-live-mobile/.env.android.staging
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ SENTRY_DSN=https://[email protected]/661
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Staging"
ADJUST_APP_TOKEN=v88jjyrsto8w
BRAZE_API_KEY="be5e1bc8-43f1-4864-b097-076a3c693a43"
BRAZE_ANDROID_API_KEY="be5e1bc8-43f1-4864-b097-076a3c693a43"
BRAZE_IOS_API_KEY="e0a7dfaf-fc30-48f6-b998-01dbebbb73a4"
BRAZE_CUSTOM_ENDPOINT="sdk.fra-02.braze.eu"
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
android:networkSecurityConfig="@xml/network_security_config"
android:supportsRtl="true">
<service android:name=".BackgroundService" />
<service android:name="com.braze.push.BrazeFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="com_braze_api_key">@string/BRAZE_API_KEY</string>
<string name="com_braze_api_key">@string/BRAZE_ANDROID_API_KEY</string>
<string translatable="false" name="com_braze_custom_endpoint">@string/BRAZE_CUSTOM_ENDPOINT</string>
<bool translatable="false" name="com_braze_firebase_cloud_messaging_registration_enabled">true</bool>
<string translatable="false" name="com_braze_firebase_cloud_messaging_sender_id">750497694072</string>
<bool name="com_braze_handle_push_deep_links_automatically">true</bool>
<string name="com_braze_default_notification_channel_name">Your default channel name</string>
<string name="com_braze_default_notification_channel_description">Your default channel description</string>
</resources>
2 changes: 1 addition & 1 deletion apps/ledger-live-mobile/ios/ledgerlivemobile/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
[self initializeFlipper:application];

// Initialize Braze
NSString *brazeApiKeyFromEnv = [ReactNativeConfig envFor:@"BRAZE_API_KEY"];
NSString *brazeApiKeyFromEnv = [ReactNativeConfig envFor:@"BRAZE_IOS_API_KEY"];
[Appboy startWithApiKey:brazeApiKeyFromEnv inApplication:application withLaunchOptions:launchOptions];

// Retrieve the correct GoogleService-Info.plist file name for a given environment
Expand Down

0 comments on commit 7556612

Please sign in to comment.