react-native-expo-moengage
v2.0.1
Published
MoEngage Expo plugin for integrating MoEngage React-Native SDK
Downloads
21,058
Maintainers
Readme
React Native Expo MoEngage
This is an Expo plugin for integrating the MoEngage SDK into your React Native project.
Installation
npm install react-native-expo-moengageUsage
Add the plugin to your app.json or app.config.js:
{
"expo": {
"plugins": [
[
"react-native-expo-moengage",
{
"android": {
"configFilePath": "<Android_Config_Path>",
"smallIconPath": "<Small_Icon_Path>",
"largeIconPath": "<Large_Icon_Path>",
"includeFirebaseMessagingDependencies": false,
"_comment1": "enable includeFirebaseMessagingDependencies to include firebase messaging library while prebuilding moengage expo plugin",
"isExpoNotificationIntegration": false,
"_comment2": "enable isExpoNotificationIntegration (along with shouldIncludeMoEngageFirebaseMessagingService) to add the moengage expo firebase service class for receiving notification while supporting expo notification. Ignored if shouldIncludeMoEngageFirebaseMessagingService is false",
"shouldIncludeMoEngageFirebaseMessagingService": false,
"_comment3": "enable shouldIncludeMoEngageFirebaseMessagingService to include the moengage firebase service class for receiving notification. Enabling this also adds the firebase_messaging_installation_id_enabled meta-data to the AndroidManifest.xml to enable firebase installation id support"
}
}
]
]
}
}