Unity Push Notification SDK Integration

To integrate Pushwoosh into your Unity application you need to do simple following steps:
For iOS 1. Import Unity iOS plugin https://github.com/shaders/push-notifications-sdk/tree/master/SDK%20Sample%20Projects/Unity/iOS into your assets folder in Unity. 2. In Pushwoosh/Info.xml enter your Pushwoosh Application ID 3. After generating XCode project from Unity, add -ObjC flag to the Linker Flags in the Xcode project generated. See this guide on how to do that: http://developer.apple.com/library/mac/#qa/qa1490/_index.html
That’s it! Easy? Let’s get to Android part then!
For Android 1. Import Unity Android plugin https://github.com/shaders/push-notifications-sdk/tree/master/SDK%20Sample%20Projects/Unity/Android into your assets folder in Unity. 2. Replace PACKAGE_NAME in Plugins/Android/AndroidManifest.xml with your project package. Please note that in Unity it is called ‘Bundle Identifier’. 3. In the same manifest change the value of the “PW_APPID” property to your Pushwoosh Application ID Also change the value of the PW_PROJECT_ID to your GCM Project ID. The GCM Project ID is a number but make sure you prefix it with the letter “A”.

4. To receive push notifications on Android when the application is active without posting the notification to the status bar, set the following line to true:
[box type=”shadow”] See this guide for more information on getting your GCM Project Id: [http://www.pushwoosh.com/programming-push-notification/enabling-gcm-services-for-google-api/](http://www.pushwoosh.com/programming-push-notification/enabling-gcm-services-for-google-api/) IMPORTANT! Make sure you leave the first letter (“A”) when entering your Project ID. [/box] **Expert Mode On!** Want to have more control? Note there are two .cs files: **PushNotificationsIOS.cs** and **PushNotificationsAndroid.cs**. These are C# classes, attach them to any **Game Object** in the scene, Camera object for example. The interface is very simple and describes itself pretty much. You can get push token, handle push registration and push notification events, and set tags! That’s it! How easy is that?