kobakei / unity-gcm

Unity plugin for Google Cloud Messaging (GCM)
59 stars 34 forks source link

notification does not start the application #14

Open alienhaxor opened 9 years ago

alienhaxor commented 9 years ago

http://stackoverflow.com/questions/28052802/gcm-notification-received-on-device-does-not-start-the-application

This is the error I get in logcat:

Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1505 com.android.server.StatusBarManagerService.sendNotification:985 com.android.server.StatusBarManagerService.removeNotification:710 com.android.server.NotificationManagerService.cancelNotificationLocked:2469 com.android.server.NotificationManagerService.access$5100:162

LeshM commented 9 years ago

com.android.server? sendNotification?

Are you trying to send a notification from the device?

alienhaxor commented 9 years ago

The notification is sent from a 3rd party server through GCM.

LeshM commented 9 years ago

Of course it's supposed to be sent from a server. But the logcat looks like the android device is the one sending it Oo

alienhaxor commented 9 years ago

I got it working now. The logcat errors in question didn't have anything to do with this issue. If anybody else is trying to solve this issue, follow Leshm's advice here: https://github.com/kobakei/unity-gcm/issues/1