How does one integrate settings for sending notification data to both debug and release app versions (created as separate apps on the PushWoosh console) inside an iOS app?

The APP ID and APP KEY are both integrated inside the Info.plist file so it seems difficult to switch configurations between app targets at runtime.

A tutorial would be appreciated.

asked 22 Jun '15, 05:23
dream_francis's gravatar image


edited 22 Jun '15, 05:24


One iOS build cannot be "Development" and "Production" at the same time, since each of them is configured with a different set of certificates (Development / Production), and signed with different provisioning profiles (Development / Distribution).

permanent link
answered 22 Jun '15, 10:49
Benedict's gravatar image


I've decided to use separate .plist files for the two builds using Xcode settings.

permanent link
answered 22 Jun '15, 10:39
dream_francis's gravatar image


Add a user defined setting to the project build settings, eg PUSHWOOSH_APPID. You can reference this setting's value in the Info.plist by using $(PUSHWOOSH_APPID). This will allow you to have different values for debug and release.

Alternatively, you could use Xcode config files for debug and release, and in them have a build variable that is referenced in the info.plist.

Ideally, the Pushwoosh app ID should be configurable at runtime to make this alot easier, or have 2 keys for development and production.

permanent link
answered 08 Jul '15, 00:40
ricsantos's gravatar image


edited 08 Jul '15, 00:58

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 22 Jun '15, 05:23

question was seen: 1,181 times

last updated: 08 Jul '15, 00:58