Step 4 Select the apns_type. Configure the app for Dev or Prod.
{"request":{"auth":"yxoPUlwqm…………pIyEX4H",// API access token from Pushwoosh Control Panel"application":"XXXXX-XXXXX",// Pushwoosh application code"device_type":1,"ios_key_management_type":"auto","step":"4","ios_apple_id":"xxx@xxxxx.xxx","ios_apple_password":"xxxxxx", "ios_framework": "native", // possible values: "native", "cordova", "titanium", "marmalade", "adobeAir", "corona", "xamarin", "phoneGapBuild", "triggerIO", "unity"
"team_id":"12345ABCDE","appid":"67890FGHIJ","apns_type":"0"// "0" - configure certificate for Development | "1" - configure certificate for Production }}
{"status_code": 200,"status_message": "OK","response": {"step_data": {"appIdProfiles":[ {"profileId":"KLMNOPQRS1","name":"iOS Team Provisioning Profile: com.xxxxx.xxxxx" }, {"profileId":"KLMNOPQRS2","name":"XXXXXXX" } ],"certificates": [ {"value":"PY986727N9","name":"Developer (Expiry Feb 13, 2016)" } ],"step":5// proceed to step 5 } }}
Step 5 Select the certificate and provisioning profile.
{"request":{"auth":"API_ACCESS_TOKEN","application":"APPLICATION_CODE","device_type":"1","ios_key_management_type":"auto","step":"5","ios_apple_id":"xxx@xxxxx.xxx","ios_apple_password":"xxxxxx", "ios_framework": "native", // one of native, cordova, titanium, marmalade, adobeAir, corona, xamarin, phoneGapBuild, triggerIO, unity
"team_id":"12345ABCDE","appid":"67890FGHIJ","apns_type":"0","auto_update_profile":"1",// "0" - manual profile update | "1" - auto profile update"profile":"KLMNOPQRS2","certificate":"PY986727N9" }}
{"status_code": 200,"status_message": "OK","response":{"providers":{"ios":true,"android":false,"wp7":false,"macos":false,"blackberry":false,"wns":false,"adm":false,"safari":false },"needTouchProvProfile":true,// User choosed to auto-update profile"provProfileTouchedSuccessfully":true,// Profile changed on Apple side"provProfileUploadSuccessfully":true// Profile created in Pushwoosh }}
For Custom Plan subscriptions only. For more details, please contact our Sales team.
Example
{"request":{"auth":"yxoPUlwqm…………pIyEX4H",// required, API access token from Pushwoosh Control Panel"application":"XXXXX-XXXXX",// required, Pushwoosh application code"device_type":7,// 7 for OS X"macos_key_management_type":"manual",// required, only "manual" available "macos_cert_file":"iVBORw0KGgoAAAANSUhEUgAABB…",// optional. Base64-encoded content of Mac OS X certificate file "macos_key_file":"iVBORw0KGgoAAAANSUhEUgAABB…",// optional. Base64-encoded content of Mac OS X key file "macos_key_password":"PASSWORD",// optional. Key file password "macos_gateway":1// required, push gateway. "0" for sandbox or "1" for production }}
For Custom Plan subscriptions only. For more details, please contact our Sales team.
Example
{"request":{"auth":"yxoPUlwqm…………pIyEX4H",// required, API access token from Pushwoosh Control Panel"application":"XXXXX-XXXXX",// required, Pushwoosh application code"device_type":8,// 8 for Windows 8"wns_psid":"ms-app://…",// required, package security identifier of the app from Windows Store"wns_secret":"CLIENT_SECRET"// required, Windows client secret }}
For Custom Plan subscriptions only. For more details, please contact our Sales team.
{"request":{"auth":"yxoPUlwqm…………pIyEX4H",// required, API access token from Pushwoosh Control Panel"application":"XXXXX-XXXXX",// required, Pushwoosh application code"device_type":11,// required, 11 for Chrome "chrome_fcm_service_account": "FCM service account key", // required, JSON file generated in Firebase project settings
"chrome_gcm_api_key":"AIzaSyA…………….7rM",// required, GCM/FCM API key for Google Chrome "chrome_gcm_project_number":"557…919"// required, GCM/FCM project number }}
For Custom Plan subscriptions only. For more details, please contact our Sales team.
Example
{"request":{"auth":"yxoPUlwqm…………pIyEX4H",// required, API access token from Pushwoosh Control Panel"application":"XXXXX-XXXXX",// required, Pushwoosh application code"device_type":14,// 14 for email"email_from_email":"email@domain.com",// required, email address should be valid and verified"email_from_name":"SENDER_NAME",// required, name to display in the "From" email field"email_reply":"email@domain.com"// required, email address to reply should be valid and verified }}