- Home /
Apple Push Notification with Unity3d?
How do you interface Apple Push Notifications with Unity?
Answer by Henrique Vilela · May 05, 2011 at 07:03 PM
When you compile your game to iOS you get a XCode project. If you need to add anything external to it like iAd, GameCenter or Push Notifications, you should add to this project as you would do to any iOS project, regardless if it's Unity or not.
You need to do a plugins in unity : http://unity3d.com/support/documentation/$$anonymous$$anual/Plugins.html
Answer by Macdude2 · May 05, 2011 at 07:19 PM
I am pretty sure the only way to get push notifications as of now with unity is if you install a plugin to unity. You might be able to find the plug in on the unity store, but there also might be some just floating around the internet. It is definitely possible, you might just need to search google and the unity store to find it.
Answer by ajayaec · Sep 05, 2013 at 10:03 AM
Have a look at our plugin http://blogs.shephertz.com/2013/08/08/steps-to-integrate-push-notification-with-unity3d-on-ios/ We also have service to sending and scheduling push notification and doing push analytics as well.
Answer by gdeglin · Feb 20, 2015 at 02:56 AM
There are two ways to do this:
Use a 3rd party service. A variety of good 3rd party push notification services exist, some of which also provide a Unity plugin. (Disclaimer: I help run one of these services called GameThrive)
Implement your own backend notification delivery system. A variety of open source push notification server apps exist and work well for smaller notification volumes.
Answer by Yuriy-Ivanov · Jun 16, 2015 at 01:11 PM
For the client side you can use NotificationServices: http://docs.unity3d.com/ScriptReference/iOS.NotificationServices.html
But you'll have to write your own server code and it is iOS only solution.
For the complete solution there are the following options.
If you choose using the 3rd party service you can look at GameThrive indeed (it's now called OneSignal).
But if you want more control & customisation options or just would prefer using your own server for sending the push notifications and not rely on 3rd party services, try using a new asset UTNotifications (it is completely open source and supports iOS & Android on both the Google Play based and Amazon devices). Here is more about it: http://forum.unity3d.com/threads/released-utnotifications-professional-cross-platform-push-notifications-and-more.333045/
Your answer
Follow this Question
Related Questions
testing on an android device 0 Answers
How to get current battery life on mobile device 3 Answers
iphone screen size 2 Answers
How to embed unity ios project with another ios project 0 Answers
What does Mprotect remapping failed mean and how do I fix it? 1 Answer