Gathering detailed insights and metrics for @nayya/braze-expo-plugin
Gathering detailed insights and metrics for @nayya/braze-expo-plugin
Gathering detailed insights and metrics for @nayya/braze-expo-plugin
Gathering detailed insights and metrics for @nayya/braze-expo-plugin
npm install @nayya/braze-expo-plugin
Typescript
Module System
Min. Node Version
63
Supply Chain
95.7
Quality
80
Maintenance
50
Vulnerability
99.6
License
Total Downloads
93,453
Last Day
1
Last Week
2
Last Month
11
Last Year
297
Minified
Minified + Gzipped
Latest Version
0.1.11
Package Id
@nayya/braze-expo-plugin@0.1.11
Unpacked Size
126.20 kB
Size
32.64 kB
File Count
77
Cumulative downloads
Total Downloads
Currently, the Braze React Native SDK does not support the Expo managed workflow. This means that Braze customers who use the Expo managed workflow and want to include the Braze SDK are unable to do so unless they write their own Expo config plugin. This plugin meets our needs at Nayya, but may or may not meet the needs of other Braze SDK users.
Appboy/appboy-react-sdk#119 is tracking progress on a comprehensive config plugin.
This plugin may or may not meet the needs of your Expo app, and it should not be considered stable or production ready.
It is subject to breaking changes until we reach v1.0.0
.
It has only been tested with:
eas build
with EAS managed credentialsyarn add @nayya/braze-expo-plugin
Add the plugin and its props to your app.config.js
:
1// Required props: 2const androidSdkApiKey = process.env.BRAZE_SDK_API_KEY_ANDROID; 3const androidSdkEndpoint = process.env.BRAZE_SDK_ENDPOINT_ANDROID; 4const appleTeamId = '1234567890'; 5const firebaseBoMVersion = '29.3.1'; // Determines the versions of Firebase SDK packages. See https://firebase.google.com/docs/android/setup#available-libraries for versions. 6const firebaseCloudMessagingSenderId = process.env.FIREBASE_SENDER_ID; 7const iosSdkApiKey = process.env.BRAZE_SDK_API_KEY_IOS; 8const iosSdkEndpoint = process.env.BRAZE_SDK_ENDPOINT_IOS; 9 10// Optional props: 11const iosDeploymentTarget = '12.0'; // Defaults to '12.0' 12const largeNotificationIcon = './assets/icons/notification-icon-large.png'; 13const notificationIconBackgroundColor = '#6667AB'; 14const shouldUseProvisionalPush = false; // Defaults to 'false', set to `true` if you want to use Provisional Push on iOS instead of explicitly asking for permission. See https://developer.apple.com/documentation/**usernotifications**/asking_permission_to_use_notifications#3544375 for reference. 15const smallNotificationIcon = './assets/icons/notification-icon-small.png'; 16 17export default { 18 expo: { 19 /* NOTE: the following config items are all required: */ 20 name: 'YourApp', 21 sdkVersion: '44.0.0', 22 ios: { 23 buildNumber: '1.2.3', 24 bundleIdentifier: 'your.app.here', 25 }, 26 android: { 27 versionCode: 123, 28 }, 29 // ... 30 plugins: [ 31 // ... 32 [ 33 '@nayya/braze-expo-plugin', 34 { 35 // Required props: 36 androidSdkApiKey, 37 androidSdkEndpoint, 38 appleTeamId, 39 firebaseBoMVersion, 40 firebaseCloudMessagingSenderId, 41 iosSdkApiKey, 42 iosSdkEndpoint, 43 44 // Optional props: 45 iosDeploymentTarget, 46 largeNotificationIcon, 47 notificationIconBackgroundColor, 48 shouldUseProvisionalPush, 49 smallNotificationIcon, 50 }, 51 ], 52 ], 53 }, 54};
For local builds, define these vars in your local environment before building (could use dotenv
).
For EAS builds, add them as secrets on the Expo website and then run the eas build
command.
deploymentTarget
from expo-build-properties
config plugin if it's in use.No vulnerabilities found.
No security vulnerabilities found.
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-52.2%
11
Compared to previous month
Last Year
-98.7%
297
Compared to previous year