Cm Hybrid message plugin
This plugin is a Cordova wrapper for the Hybrid Message SDK from CM Telecom.
(https://github.com/CMTelecom/cm-plugin-hybridmessaging)
Referencing version: #1.0.0
When using this plugin in a mobile application, it will be possible to send messages to the mobile users using push notifications or SMS depending on which channel is available at the moment as well as letting the users retrieve messages sent to them in the past using a convenient mailbox-like API.
If the user is using your application, it firstly requires a one time verification with his phone number. This will register his device and his phonenumber in CM. The user will be ready to receive SMS as a pushnotification. This document will show you:
In order to make the plugin work in Outsystems, serveral actions are required:
The only thing required is creating a firebase project. There’s no other plugin required to make push notifications work. (ex. Pushwoosh is not required, the Cordova plugin does all the work)
Follow the tutorial on https://firebase.google.com/docs/cloud-messaging/ios/certs to generate the app ID, app provisioning profiles and an APNs SSL certificate
IMPORTANT: the APNs SSL certificate needs to be generated for the "production" environment (however note that it can still be used in combination with the APNs development sandbox)
Be sure to upload the newly generated push-enabled provisioning profile to OutSystems when preparing the builds for hybrid-messaging-capable apps.
Login into the CM Portal
https://login.cmtelecom.com/
And create a new application in the App Manager:
https://appmanager.cmtelecom.com
Fill in the required information:
For IOS : Don’t forget to upload your p12 certificate at the CM CP.
Available methods wrapped in a client action:
Input parameters required: API key, API secret, SenderID
ConfigureCM:
Configures the hybrid messaging service with API key, API secret(generated from CM portal), Android sender ID and relevant callbacks
**IMPORTANT**: the ConfigureService method should be called as early in the application's life cycle as possible and prior to executing any other call related to hybrid messaging. All hybrid messaging methods called prior to service configuration will return with an error.
StartMessagingService
Enables the hybrid messaging service
**IMPORTANT**: the StartMessagingService method should be called after executing the ConfigureService method and prior to executing any other call related to hybrid messaging. All hybrid messaging methods called prior to service starting (except for ConfigureService which should be called before it and as early in the application life cycle as possible) will return with an error.
Input parameters : MSISDN (phone number).
Only required once for each user using the application with the sdk implemented. Format : [00_countrycode_PhoneNumber ] ex: 0032465123549
**IMPORTANT**: in order to be able to receive hybrid messaging notifications and to be able to fetch older messages from the server, the device's phone number (MSISDN) has to be verified at least once after the app's installation. Default phone number verification method is by the means of sending a one-time PIN via SMS.
Returns current [DeviceRegistrationStatus]
Requests the phone number verification via voice call. Typically serves as a fallback in case if the default SMS-based number verification failed e.g. due to network issues. The requested voice call, if successful, will provide the same PIN code as was originally sent via SMS.
Required if a RequestVerification is Required
Verifies the PIN typically entered by the user after previously receiving it in an SMS for the purpose of phone number verification.
Requests current verification status from the current MSISDN (phone number)
Optional Input parameters:
Returns the messages that have been sent to the particular MSISDN number using Hybrid Messaging (either all of them ever since the number has been registered with Hybrid Messaging or a subset of those depending on the provided limit and offset values)
Returns a device ID value as used by the Hybrid Messaging system for device identification
Returns the value of the msisdn number registered with the hybrid messaging system
Required parameters: true or false
Sets development mode for iOS, which will use Development Sandbox for push messages in that case.
Get the status if the MSISDN is registred with the App configured on CM portal.
Returns a DeviceRegistrationStatus code, possible codes:
There is a basic webblock available which calls the required client actions for HybridMessages.
The Required client actions to make hybrid messaging work are (in the onReady of a screen/layout):
Example of an onReady:
how to install or setup this plugin in outsystems mobile app, i need step by step tutorial like one signal setup configuration
Sipoltas Sby wrote:
Dear Sipoltas Sby, thanks for leaving your request on this forum. I've just sent you a private message. Looking forward to support you in the best way possible!