How can I detect if the game is launched from a push notification?

Hi,
Is it possible to detect if the game is launched from a push notification with Unity. According to this stackoverflow link it is possible with native apps.

Try adding the delegate methods mentioned in that stackoverflow post to UnityAppController.mm in the generated Xcode project. You could use UnitySendMessage() from within those methods to update the game with the contents of the dictionary received from the notification.

1 Like

See http://docs.unity3d.com/ScriptReference/iOS.NotificationServices-remoteNotifications.html

Once you have processed the received remote notifications you can clear them. This is how I handle local notifications but I haven’t had to deal with remote ones.

1 Like