Mobile SDK

iOS or Android

    Security - CarKey Check

    Info: Stellantis Mobile SDK for ex Groupe PSA brands (Citroën, DS, Peugeot, Opel and Vauxhall) is not publicly available for now.

    CarKey is a security feature that perform a check to make sure the user is in possession of the vehicle keys.

    An activated CarKey is required in order to use remote commands & vehicle status. Check out Service Activation Steps to get assistance accessing remote command.

    This has to be performed only once, in order to unlock the service, but it’s not required each time the user needs to perform a remote action.

    Requirements #

    To activate CarKey on the user account, the following requirements need to be fulfills:

    • 📱 The mobile phone is connected with Bluetooth to the vehicle.
    • 🔑 The vehicle’s keys are in possession of the user.
    • 🚗 The user is inside the vehicle (with key and phone).

    Check Carkey status #

    Before activating a CarKey, you can check if it’s already activated. If it’s already activated, you don’t need to launch the process again.

    1
    2
    3
    4
    5
    6
    
    pims.get("pims.vehicle.carkey ",
      mapOf( /* parameters */
      Pair("vin", "VR1AB12C3D4567890")
      )
    ) { message -> /* handle message */ }
    
    1
    2
    3
    4
    5
    6
    
    pims.get(api: "pims.vehicle.carkey ", 
      parameters: [
      "vin": "VR1AB12C3D4567890"
      ]
    ) { (message) in /* handle message */ }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    
    // representation of the `succeeded` dictionary object message as JSON
    {
      "transactionId": "953cfefb-bc72",
      "status": "SUCCEEDED",
      "result": { 
        "isCarKeyVerified": "true",
        "cvsStatus": "active",
        "maxReactivationDate": "2021-07-29T22:25:09.898Z"
      }
    }
    

    false

    Activate CarKey #

    When CarKey conditions are met, we can perform a CarKey activation using the following API:

    Info: CarKey needs to be activated only once. The activation of CarKey is stored in the user account and the related services are unlocked.

    1
    2
    3
    
    pims.set("pims.vehicle.carkey "
    ) { message -> /* handle message */ }
    
    1
    2
    3
    
    pims.set(api: "pims.vehicle.carkey "
    ) { (message) in /* handle message */ }
    
    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": { 
        "hasCarKey": "true",
        "vin": "VR1AB12C3D45678909",
        "securityCode": "c2hhemFtCg==",
        "securityExpiration": "2021-07-29T22:25:09.898Z"
      }
    }
    

    false