Payload field size limitation of GCM when sending payload in TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration

Payload field size limitation of GCM when sending payload in TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration

book

Article ID: KB0076371

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Mobile Integration -
Not Applicable -

Description

Payload field size limitation of GCM when sending payload in TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration

Issue/Introduction

Payload field size limitation of GCM when sending payload in TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration

Environment

Product: TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration Version: 1.1,2.0,6.1 OS: All Supported Operating Systems --------------------

Resolution

In GCM(Google Cloud Messaging) Data payload lets developers send up to 4KB of custom key/value pairs. Notification messages can contain an optional data payload which is delivered when users click on the notification. Hence due to Limitation of size on GCM in TIBCO ActiveMatrix BusinessWorks™ Plug-in for Mobile Integration files with large size cant be sent.

From internet we found some alternatives like below for same

1. uploading the file elsewhere, and putting a URL to the file in the content of the GCM message that would tell the receiver to download from the URL.

reference : http://stackoverflow.com/questions/17960188/can-i-send-some-large-data-over-gcm
Or

2. send push notification on device and send any code to identify what will you do in this notification. After getting notification please use web-service(API) to get your response from server.

reference : http://stackoverflow.com/questions/29226089/how-to-send-large-message-data-size-10-kb-using-push-notifi cation-to-android