Just recently I was looking for a way to use iOS push notifications in the application based on Unity Engine. To make it clear, this notifications appears every time any iOS app has something to tell the user in 3 different ways:
- An onscreen alert or banner
- A badge on the app’s icon
- A sound that accompanies an alert, banner, or badge
For further reading you can use this and this. While googling for push notification integration with Unity, I've found lot's of plugins that promised me to perform such an integration. To my suprise, Unity itself provided some classes to wrap low level coding for creating push notifications. At least unity 4.6 has them.
Main class for such a task is NotificationServices. To start working with notifications you should register with RegisterForNotifications method. After that you can use deviceToken for remote notifications or start using local notifications. If you still don't know which one to use, try to read this. To configure application for remote push notification you can use this guide, just make sure you will scip section for creating iOS app and create Unity app instead. If you are testing remote notifications you can use my simple script ( get it here ), just attach it to anything on the scene and build it for iOS. Sending local notifications even easier and do not require any additional configuration. Last but not the least, to test that your app really aquire remote notifications you need another app, that will send this notification to Apple Push Notification Service. How to create such a provider you can read here, in the section "Creating Push Notification Provider". Don't forget to store deviceToken from xcode console when running test unity app and use that token in PushMeBaby application.
In the end, you'll be able to send notifications from notification provider and get them in your Unity application.