Search docs/
Getting StartedPlugins

Mobile Messaging

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. This document describes library integration steps for your Cordova project.

For more info see Cordova plugin docs

https://github.com/infobip/mobile-messaging-cordova-plugin

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!

Installation

ionic cordova plugin add com-infobip-plugins-mobilemessagingnpm install @ionic-native/mobile-messagingnpm install com-infobip-plugins-mobilemessagingnpm install @ionic-native/mobile-messagingionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS

Usage

Using React?

See here.

import { MobileMessaging } from '@ionic-native/mobile-messaging/ngx';


constructor(private mobileMessaging: MobileMessaging) { }

...


 this.mobileMessaging.init({
   applicationCode: '<your_application_code>',
   geofencingEnabled: '<true/false>',
   defaultMessageStorage: '<true/false>',
   ios: {
     notificationTypes: ['alert', 'badge', 'sound']
   },
   android: {
     notificationIcon: <String; a resource name for a status bar icon (without extension), located in '/platforms/android/app/src/main/res/mipmap'>,
     multipleNotifications: <Boolean; set to 'true' to enable multiple notifications>,
     notificationAccentColor: <String; set to hex color value in format '#RRGGBB' or '#AARRGGBB'>
    }}, (err) => {
     ...
   });

 this.mobileMessaging.register('messageReceived').subscribe((message: Message) => {
   ...
 });