As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Get os version from request (x-kinvey-device-information)
t
tupakapoor
started a topic
over 8 years ago
Hi,
I'm trying to fetch the value of the x-kinvey-device-information header (example: "x-kinvey-device-information":"iPhone Simulator/x86_64 iPhone OS 8.0"), I can't find any way to pull it from the Request object.
```
@POST
public CommandResponse handleBLRequest(@PathParam(KINVEY_COMMAND) String command, Request request){
tupakapoor
I'm trying to fetch the value of the x-kinvey-device-information header (example: "x-kinvey-device-information":"iPhone Simulator/x86_64 iPhone OS 8.0"), I can't find any way to pull it from the Request object.
```
@POST
public CommandResponse handleBLRequest(@PathParam(KINVEY_COMMAND) String command, Request request){
LOGGER.info("command: " + request.getCommand());
LOGGER.info("http action: " + request.getHttpAction());
LOGGER.info("kinvey action: " + request.getKinveyAction());
LOGGER.info("args: " + request.getArguments());
LOGGER.info("platform: " + request.getArguments().getKinveyAppMetadata().getPlatform());
LOGGER.info("id: " + request.getArguments().getKinveyAppMetadata().getId());
LOGGER.info("name: " + request.getArguments().getKinveyAppMetadata().getName());
LOGGER.info("api version: " + request.getArguments().getKinveyAppMetadata().getApiVersion());
```
results in
```
command: customEndpoint
http action: POST
kinvey action: Save
args: com.kinvey.business_logic.CollectionArguments@1dd6ab4
platform: null
id: XXXXXXXXXX
name: XXXXXXXX
api version: null
```
I assumed this would come through in getPlatform(), but is there another way to access it? Thanks in advance.