question

robert avatar image
robert asked

Android push notifications not working anymore

Since the last update to the android push notification plugin we don't get any notification on Android (Android 5.x.x) anymore.

When sending a notification to the device we get:

I/PlayFabPushMessage(24418): google.sent_time

I/PlayFabPushMessage(24418): class java.lang.Long

I/PlayFabPushMessage(24418): google.message_id

I/PlayFabPushMessage(24418): class java.lang.String

I/PlayFabPushMessage(24418): 0:1492526663876003%8728276ef9fd7ecd

I/PlayFabPushMessage(24418): default

I/PlayFabPushMessage(24418): class java.lang.String

I/PlayFabPushMessage(24418): Test Message!!!

I/PlayFabUAP(24418): Could not parse to JSONObject

I/PlayFabUAP(24418): Could not parse to JSONArray

I/PlayFabUAP(24418): Message Recieved: Test Message!!!

I/PlayFabGCM(24418): OnRecieve Notification Publisher Sending Notification..

W/ResourceType(24418): No package identifier when getting value for resource number 0x00000000

E/NotificationService( 746): Not posting notification with icon==0: Notification(pri=1 contentView=null vibrate=null sound=content://settings/system/notification_sound defaults=0x0 flags=0x10 color=0x00000000 vis=PUBLIC)

E/NotificationService( 746): WARNING: In a future release this will crash the app: com.djinnworks.ssp

We hear the notification sound playing but no notfications pops up.

included in the res/drawable folder are:
- icon.png
- app_icon.png

any ideas?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
fiveampsoftware avatar image
fiveampsoftware answered

We ran into this issue as well but got it working. Both of the icons had to be


  • app_icon.png
  • app_icon_transparent.png
5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

robert avatar image robert commented ·

Thanks! Will give this a try immediately...

0 Likes 0 ·
robert avatar image robert commented ·

Works perfect! This also fixes a crash we had on Nvidia Shield whenever we received a push notification their. Thanks!!

0 Likes 0 ·
Hamza Lazaar avatar image Hamza Lazaar robert commented ·

where do you guys put the icon files in Unity? which folder? or do you export to Android Studio project and build the apk there?

0 Likes 0 ·
robert avatar image robert Hamza Lazaar commented ·

We made a simple folder in the Plugins/Android folder called GameEngine. Inside this we use a simple android plugin structure with the icons in res/drawable. When performing an Android build we copy the actual game icons into this folder and the build process merges the icons into final res/drawable folder into the APK file.

(optionally you can put the icons just in Plugins/Android/res/drawable)

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.