Greetings.
I tried to create local notifications for my unity android project. This is notification method copyed just from tutorial:
public void SchedulePush() { var sDate = DateTime.UtcNow; sDate = sDate.AddSeconds(5); var ScheduledNotification = new PlayFabNotificationPackage() { ScheduleType = ScheduleTypes.ScheduledDate, Message = "This is a Scheduled Message", Title = "Test Scheduled Push", Id = "TestScheduledPush", ScheduleDate = sDate, }; var json = PlayFab.Json.JsonWrapper.SerializeObject(ScheduledNotification); PlayFabAndroidPlugin.ScheduleNotification(json, sDate); }
When i'm calling this method, i'm recieved only audio effect in my android. There is no image, title or description of my notification.
After that i added res/drawable folder in my project and put there app_icon and app_icon_transparent files.
After that, notifications start recieved on my phone, but without custom title and message - it's only name of project on title and empty block on message. Here is a screenshot how it's look:
Otherwise, on bluestacks emulator or Huawei mobile local notifications come immediately, without any delay.
Is there anny suggestions, where there may be a trouble? Push notification looks like receiving normal, if application is active.