question

robert avatar image
robert asked

Push Notification Issue

We have 2 (hopefully) minor problems with push notifications.

1. Android Icon
Like already mentioned in this thread ( https://community.playfab.com/questions/6165/android-notification-icon.html ) we don't get the app default icon nor a icon when trying to using a custom icon located in the res/drawable folder. Is this a known issue?

2. Push on virtual currency change
We setup a recharging virtual currency to send push notifications. This just works occasionally. (so 1 out of 5 or 10 push notifications arrive).

If we send push notifications manually (using SendPushNotification via a Cloudscript handler) to the same users all push notifications arrive instantly. Any ideas?

Thanks!

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

·
brendan avatar image
brendan answered

For 1, yes, that's a known issue, as stated in that thread. Our tools team is working on an update and will post to that thread when it has been fixed.

For 2, please bear in mind that regenerating virtual currencies are not "ticked" continually across the (literally) millions of player accounts in PlayFab. Doing so would force us to have to charge an order of magnitude more for our service, at least. VCs are updated when they are polled - so, when you get the inventory, make a purchase request, etc.

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 ·

Regarding 2, this might explain our observations. I guess a poll is also when using the Game Manager to check the virtual currency balance. This could explain the sporadic sending of the push notifications.

Thinking now of other ways to notify the user about recharged VC...

0 Likes 0 ·
brendan avatar image brendan robert commented ·

For Android, you can do a scheduled Push, but that could be confusing since the player could come back before that Push fires and spend some VC. Realistically, if you need to have real-time behavior like this, your best bet is going to be to run a dedicated server which tracks on the things you need to have running on a real-time basis.

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.