Mobile SDK

iOS or Android

    API Reference - pims.sdk.device

    Info: Stellantis Mobile SDK for ex Groupe PSA brands (Citroën, DS, Peugeot, Opel and Vauxhall) is not publicly available for now.
    Available since: v2.0.X
    Component: SDK
    Security: Authentication is not required.
    Operation:

    Returns the device information.

    Input Parameter
    No params
    Output Data
    Data name Description Type Unit/Values Example
    OS

    OS Name

    String

    n/a

    Android
    OSVersion

    OS Version

    String

    n/a

    9.0/PPR1.180610.011
    PhoneModel

    Phone model name.

    String

    n/a

    Galaxy S9
    PhoneBrand

    Phone Brand name.

    String

    n/a

    Samsung
    Error
    No errors
    Code Example
    1
    2
    3
    4
    5
    6
    7
    
    pims.get("pims.sdk.device"
      /* no params */
    ) { message -> when (message["status"] as? String) {
          "SUCCEEDED" -> { }                          // handle succeeded status
          "FAILED" ->    { }                          // handle failed status
      } }
    
    1
    2
    3
    4
    5
    6
    7
    
    pims.get(api: "pims.sdk.device"
      /* no params */
      ) { (message) in 
        if message["status"] == "SUCEEDED"    { }    // handle succeeded status
        else if message["status"] == "FAILED" { }    // handle failed status
      } 
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    
    // representation of the `succeeded` dictionary object message as JSON
    {
      "transactionId": "953cfefb-bc72",
      "status": "SUCCEEDED",
      "result": { 
      "OS": "Android",
      "OSVersion": "9.0/PPR1.180610.011",
      "PhoneModel": "Galaxy S9",
      "PhoneBrand": "Samsung"
    } 
    }
    

    false