after searching for a few days and after not finding what i was looking for I’l have to ask.
How can I implement push notifications in my app?
More specific what i want to know is there a way to receive a notification directly in unity or do i have to have a piece of code written for android specifically which will receive the notification and after that opening a unity scene (as far as i know it’s possible) and send some data (strings) to the scene.
The app will contact the server which will then send the notification through the GCM to a device.
I already have a different app written for android that can receive notifications so I know how to do that part, device registration, sending the notification and receiving it.
Unity itself doesn’t work with any Android push notifications services (neither GCM with Google Play based devices nor ADM with Amazon Android devices). So yes, you’ll have to write your own native plugin. Or you can use the existing solution, such as UTNotifications which works not only with both Android push notifications services but also with iOS push notifications (APNS). It has an API for processing received notifications which allows you to pass and read any custom data with notifications. I’m one of its developers so I would be happy to assist you with that.