Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 180329

Why is provisioning profile field blank on Workspace One (WS1) app console/catalog?

$
0
0

Hi.

 

I used the AirWatch REST APIs to upload an iOS IPA file and create an application but the Provisioning Profile field is blank. What could be wrong?

 

Rest API to upload - mam/blobs/uploadblob

Rest API to create application - mam/apps/internal/begininstall

 

Currently, I have say v1.0.4 of my app out there which is all perfect and working fine.

 

Now, I wanted to deploy v1.0.5 of my application to the WS1 console. So, I generated my IPA file and then used uploadblob API to upload the blob using Ruby's rest client gem -

 

require 'rest-client'
require
'json'

payload
={
  
:multipart =>true,
  
:file =>File.new(path_to_file,'rb')
}

response
=RestClient.post("https://*******.awmdm.com/API/mam/blobs/uploadblob?fileName=SomeApp.ipa&organizationGroupId=123", payload,{accept::json,'aw-tenant-code':"djdjhhsdsjhjsd=",'Authorization':"Basic jhdsjhdshjhdshdhh"})

 

The above code works okay and I get 200 response code as well along with the BlobId in response -

 

{ "uuid": "an0b1a59-08vk-2803-z3c0-d2613d2f74mc", "Value": 2790 }

 

Next, I take this BlobId and make the begininstall API call. This I tried from my API reference page. Request body is -

 

{

    "BlobId":"2790",

    "DeviceType":"2",

    "ApplicationName":"SomeApp",

    "SupportedModels":

    {

       "Model":

       [{

         "ModelId":1,

         "ModelName":"iPhone"

       }, {

         "ModelId":3,

         "ModelName":"iPod Touch"

       }]

    },

    "PushMode":"Auto",

    "LocationGroupId": 123,

    "EnableProvisioning": true,

    "UploadViaLink": true,

    "BundleId":"com.myorg.SomeApp",

    "ActualFileVersion":"1.0.5",

    "AppVersion":"1.0.5",

    "FileName": "SomeApp.ipa",

    "CarryOverAssignments": true,

}

 

I make the begininstall API call - https://*******.awmdm.com/API/mam/apps/internal/begininstall

 

The beininstall API call is successful as well and I get 200 response for this one as well.

 

Now when I login into WS1 web console, I see v1.0.5 of my app on the store. However, the provisioning profile field is blank. Why is this so?

 

If I manually upload the IPA by logging onto the WS1 web console, I can see everything proper.

 

What I am doing wrong with the Rest API calls?


Viewing all articles
Browse latest Browse all 180329

Trending Articles