
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
infobip-mobile-messaging-react-native-plugin
Advanced tools
Infobip Mobile Messaging React Native Plugin
Mobile Messaging SDK is designed and developed to easily enable push notification channel in your mobile application. In almost no time of implementation you get push notification in your application and access to the features of Infobip IP Messaging Platform. The document describes library integration steps for your React Native project.
For iOS project:
For Android project:
This guide is designed to get you up and running with Mobile Messaging SDK plugin for React Native:
Make sure to setup application at Infobip portal, if you haven't already.
Add MobileMessaging plugin to your project, run in terminal:
$ npm install infobip-mobile-messaging-react-native-plugin
TypeScript's definitions are included into npm package
Configure platforms
Notice
Starting from the 6.2.0 plugin version it's not mandatory to add
use_frameworks!to thePodfile, check the Migration guide if you want to get rid of it.
pod install from /ios folder (installs Mobile Messaging native SDK)#import <MobileMessaging/MobileMessagingPluginApplicationDelegate.h> and add [MobileMessagingPluginApplicationDelegate install]; into /ios/<ProjectName>/AppDelegate.m (this is required for OS callbacks such as didRegisterForRemoteNotifications to be intercepted by native MobileMessaging SDK) ...
#import <MobileMessaging/MobileMessagingPluginApplicationDelegate.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[MobileMessagingPluginApplicationDelegate install];
...
}
...
Following paths should be provided in .bash_profile
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
Add 'com.google.gms:google-services' to android/build.gradle file
buildscript {
...
dependencies {
...
// GMS Gradle plugin
classpath 'com.google.gms:google-services:4.4.2'
}
}
And add apply plugin: 'com.google.gms.google-services' at the end of your android/app/build.gradle in order to apply Google Services Gradle Plugin
Add a Firebase configuration file (google-services.json) as described in Firebase documentation. Check Applying Firebase configuration in MobileMessaging SDK Guide for alternatives.
Notice (when targeting Android 13):
Starting from Android 13, Google requires to ask user for notification permission. Follow this guide to make a permission request.
Initialize Mobile Messaging React Native plugin, provide application configuration in init method:
import { mobileMessaging } from 'infobip-mobile-messaging-react-native-plugin';
someMethod(): void {
...
mobileMessaging.init(
{
applicationCode: '<your app code>',
ios: {
notificationTypes: ['alert', 'badge', 'sound'],
},
},
() => {
console.log('MobileMessaging started');
},
error => {
console.log('MobileMessaging error: ', error);
},
);
}
import { mobileMessaging } from 'infobip-mobile-messaging-react-native-plugin';
someMethod(): void {
...
mobileMessaging.init(
{
applicationCode: '<your app code>',
ios: {
notificationTypes: ['alert', 'badge', 'sound'],
},
},
() => {
console.log('MobileMessaging started');
},
(error: MobileMessagingError) => {
console.log('MobileMessaging error: ', error);
},
);
}
NEXT STEPS: Users and installations
| If you have any questions or suggestions, feel free to send an email to support@infobip.com or create an issue. |
|---|
FAQs
Infobip Mobile Messaging React Native Plugin
The npm package infobip-mobile-messaging-react-native-plugin receives a total of 436 weekly downloads. As such, infobip-mobile-messaging-react-native-plugin popularity was classified as not popular.
We found that infobip-mobile-messaging-react-native-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.