All Products
Search
Document Center

Mobile Platform as a Service:FAQ

Last Updated:Jan 22, 2026

This topic lists frequently asked questions about Mobile Gateway Service and provides troubleshooting steps for related issues.

Is there a limit on the gateway request packet size?

The client limits requests and responses to a maximum of 200 KB. We recommend that packets do not exceed 2 KB.

The gateway is designed for Remote Procedure Call (RPC) data transmission and is not intended for transferring large files such as images or videos. Requests and responses that exceed 2 KB can negatively impact performance and stability. For file uploads and downloads, we recommend using a service that supports a large data tunnel, such as OSS.

How do I troubleshoot a failed call?

For more information, see Troubleshoot gateway errors.

What do the API error codes mean?

For more information, see Gateway result codes.

How do I resolve a conflict between okio and mPaaS when referencing okhttp?

Follow these steps to resolve the conflict:

  1. Comment out the mPaaS wire component.

    mpaascomponents{
       excludeDependencies=['com.alipay.android.phone.thirdparty:wire-build']
    }
  2. Use the publicly available wire component.

    implementation  'com.squareup.wire:wire-lite-runtime:1.5.3.4@jar'

How do I add parameters to the POST body when calling an MGS RPC interface with a JSAPI POST request?

After you configure the POST body and its corresponding data model in MGS, pass the POST body content as the value of _requestBody within the requestData parameter, as shown in the following example:

window.onload = function() {
     ready(function() {
       window.AlipayJSBridge.call('rpc', {
         operationType: 'MYAPI',
         requestData: [
         {"_requestBody":"{\"key1\":\"value1\",\"key2\":\"value2\"}"}],
         headers:{},
         getResponse: true
       }, function(data) {
         alert(JSON.stringify(data));
       });
     });
   }