All Products
Search
Document Center

Mobile Platform as a Service:Create an application

Last Updated:Oct 30, 2023

To use mPaaS, you must first create an app in the mPaaS console and download a configuration file.

Prerequisites

You have a developer account. For details about registering an account, see Register accounts.

Create an mPaaS app

  1. Log on to the mPaaS console.

    Note

    If you are using mPaaS on another platform (such as the Ant Financial open platform), log on to the mPaaS console of the corresponding platform.

  2. Click the Create an application button.

  3. Complete the app information.

    1. Enter the app name. Example: mPaaS Demo.

    2. Click + to upload the app icon. You can skip this step, and the app will use the default icon in this case.

  4. Click OK to finish creating the app. The application you just created is displayed.

Download the configuration file

  1. On the app list page, click the name of the created app (such as the mPaaS Demo app created in the previous step), and the following page appears:

    • The app name appears at the top left, where you can switch apps.

    • The left side of the page displays a list of component services provided by mPaaS.

  2. Click iOS code configuration button to go to the Connect mPaaS to my application page.

  3. On the Connect mPaaS to my application page, click download the configuration file to go to the Code Configuration page.

  4. On the Code configuration page, enter Bundle ID, click the Download configuration button, and download the app configuration file in .config format to the local computer for subsequent development.

    The content of the downloaded configuration file is in JSON format, as shown in the following example:

    {
     "appId":"ALIHK570DA89071940",
     "appKey":"ALIHK570DA89071940_IOS",
     "base64Code":"/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wAARCAADAAMDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxFobXF3cwBkmTrM0HmXQB+kBWPpNmkFAwABAQAAAAQAAB4AAADAAAAADAAAAIgAAAABAAAAAAAAAAAAAAAAAAAAAAAAABUAAAABAAAAAAAAAAAAAAAIAAAAAAAAANHdTmJ3AAAAAAAAAAAAAADxaH5QCq+leJs3obVk3cvGfEt4FOAk+nk5+NcRqlEem7mc7MRMkTznyN2cLbpn8zaya0uSj0UMyD3j2ed1cmdjbngBAwF4dWZ3AwECBgEAEQEBCAFxdHNqb3ZxMnz0IBFj0fFkf+Z52g7YGBKQcQVacXVC9I6zKuUFgYCYm42oQhT6utsiYv8Us68EQLL8fqzFPc8DZHdMUZuIpcECb+8/sdzvUl4/0YXe9HqTi2ytqojztIq9GUgmvDBYeZsCPJIdfKp8FjGxp/bo6uhZIrjM5z4+eowoG9vwhVH/fbZ0rYY6zGr5L2IbB+TOOcHC9gH+druENFlgO7sY87UD4ApfgMf7d6fmBHGjmBq1k/iQzYK2mCuznJpEKPZWf2bqTnVS2/r71P8AAMKgGAYAAAAA",
     "bundleId":"YourBundleID",
     "rootPath":"mpaas/ios/ALIHK570DA89071940-default",
     "workspaceId":"default",
     "syncport":"443",
     "syncserver":"msync.mpaas.cn-hongkong.aliyuncs.com",
     "pushPort":"443",
     "pushGW":"push.mpaas.cn-hongkong.aliyuncs.com",
     "rpcGW":"https://mgw.mpaas.cn-hongkong.aliyuncs.com/mgw.htm",
     "logGW":"https://mdap.mpaas.cn-hongkong.aliyuncs.com",
     "mpaasapi":"https://mpaasapi.mpaas.cn-hongkong.aliyuncs.com/mgw.htm",
     "mpaasConfigVersion":"V_1.0",
     "mpaasConfigEnv":"INTL_HK_CLOUD",
     "mpaasConfigPluginExpired":"",
     "mpaasConfigLicense":"OI1Ozzu18RK2Gjewf3jnmSzPS3yTAdQdxbALtSPG6pkFHHIFgX2St2YijIKphcocswoUVIvnELOCTP5peXbJc1XoN3jZ8S1slPrwwJYhdf/RxnZuuADJdGwg2c+Voe0Y34nk4g8EN1LhzXpql+88XMr4mIQoZA3ldaqAuVIsvRhD44u+/JynB98LDU/X0slFhlYNDxL2tWWynhdVPICxY0BQjtDYqazJvJywfL3+YWDDYxQtQC5d5fEiukLs0apTgA0V/568++QDAv15PE9Cl63UwufbLEyJfH7QnaSga5b7/v7Ciyy6DPrIWV6eb4SwuVO/g9RB3QHgk4GKMSupAQ=="
    }