Setting up Mobile Messaging SDK connection
Digital Messaging Manager of your Digital Messaging interface includes two mobile messaging channels for Android and iOS. You can add the Android or iOS mobile apps as connections to integrate them into your native mobile app.
The following figure shows the Mobile Messaging SDK connection that you can configure in Digital Messaging Manager:
Creating a Mobile app connection
Add a mobile app connection in your Digital Messaging interface, and then configure the general, security, context data, and push notification settings. After you configure the settings, download the iOS and Android SDKs to integrate into your application. By doing so, Mobile Messaging SDK helps you embed Web Messaging in your native Mobile app.
- On the General tab, in the Name field, enter the name for the Android App Messaging connection.
- Click Save.
- To configure the chat context data to display to the
CSRs, on the Context data tab, in the General
information section, select the context data that you want to
capture, and then click Save:
Context data option Description IP address The IP address of the mobile device Location The physical location of the mobile device based on IP address Device/OS The mobile operating system and device type - On the Security tab, perform the
following actions:
- To display the conversation history to the authenticated customers, in
the Conversation history section, select the
Show previous interactions to authenticated
customers check box.
- To view the token, on the Security tab, in the JWT Secret section, click Show JWT Secret.
You can use JWT API token to sign requests when the Digital Messaging service and your Android app communicate. - To display the conversation history to the authenticated customers, in
the Conversation history section, select the
Show previous interactions to authenticated
customers check box.
- On the Installation tab, in the Mobile
SDK section, perform the following steps:
- Copy the generated values for Api id and
Api url to a local file or the
clipboard.You later specify these values in the Java code for Mobile app.
- Download Pega Mobile Messaging SDK for iOS to your computer by clicking Download iOS SDK.
- Download Pega Mobile Messaging SDK for Android to your computer by clicking Download Android SDK.
- Copy the generated values for Api id and
Api url to a local file or the
clipboard.
- On the Push notifications tab, perform the following
steps:
- In the URL field, enter the webhook URL for your
Android App that can receive messages when the user is away from the
app, and then click Save.
SDK does not send push notifications directly to the device.
- In the Custom headers section, in the Header key field, enter a header key.
- In the Header value field, enter a header value.
- Click Add.
- To add more headers, repeat steps 6.b through 6.d.
- In the URL field, enter the webhook URL for your
Android App that can receive messages when the user is away from the
app, and then click Save.
Previous topic Architecture Next topic Mobile Messaging SDK configuration in your Android app project