question

robert avatar image
robert asked

Android Push Notification / Feedback

We just tried to update our Android build to the new push notification system. Unfortunately, as the push notification system uses Firebase we can't use it because Firebase including all depending Android libraries adds almost 20.000 dex references which is way too much for our projects to successfully build an APK. (We need around 63k references for google play, facebook and heyzap/admob already).

Anyway, as the old PlayfabUnityAndroid plugin makes to much troubles we decided giving the Prime31 Google Cloud Messaging plugin a try. To make it short, works perfect at the moment. Using the replacement functions we get the title and message values sent from playfab perfectly displayed.

GoogleCloudMessaging.setPushNotificationAlternateKey( "subtitle", "default" );
GoogleCloudMessaging.setPushNotificationAlternateKey( "title", "gcm.notification.title" );
			
Just for your information.
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

·
1807605288 avatar image
1807605288 answered

What you describe above was actually a goal on our end, that we send the message in a format that is customizable and deliverable to any device or plugin. We're happy to hear you are able to use another push client that wasn't specified in our guides, as that means we were successful.

Thanks for the feedback.

2 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 ·

Sounds good. At least I would suggest you add this to the documentation as it makes the impression that the new system was designed to work with firebase only, or, the firebase is a requirement.

0 Likes 0 ·
1807605288 avatar image 1807605288 ♦ robert commented ·

Yes, we will make a pass to fully describe all the new possibilities in the next few weeks.

0 Likes 0 ·

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.