Skip to content

Commit 2055133

Browse files
author
Miguel Tomas
committed
**Fixed**:
- Added missing gitignore & gitattributes files - Fixed notifications for Android
1 parent 40dc043 commit 2055133

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.1] - 2020-07-29
8+
9+
**Fixed**:
10+
- Added missing gitignore & gitattributes files
11+
- Fixed notifications for Android
12+
713
## [0.1.0] - 2020-07-29
814

915
- Initial submission for package distribution

Runtime/GameNotificationsMonoBehaviour.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,18 @@ public void Initialize(params GameNotificationChannel[] channels)
314314
if (!doneDefault)
315315
{
316316
doneDefault = true;
317-
((AndroidNotificationsPlatform)Platform).DefaultChannelId = notificationChannel.Id;
317+
((AndroidNotificationsPlatform)_platform).DefaultChannelId = notificationChannel.Id;
318318
}
319319

320320
long[] vibrationPattern = null;
321321
if (notificationChannel.VibrationPattern != null)
322+
{
322323
vibrationPattern = notificationChannel.VibrationPattern.Select(v => (long)v).ToArray();
324+
}
323325

324326
// Wrap channel in Android object
325-
var androidChannel = new AndroidNotificationChannel(notificationChannel.Id, notificationChannel.Name,
327+
var androidChannel = new AndroidNotificationChannel(
328+
notificationChannel.Id, notificationChannel.Name,
326329
notificationChannel.Description,
327330
(Importance)notificationChannel.Style)
328331
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.gamelovers.notificationservice",
33
"displayName": "Notification Service",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"unity": "2019.4",
66
"description": "This package provides an easier to use service to help manage the notification sent to mobile devices, and based on the Unity's Mobile Notifications package.\nIt allows to schedule local notifications, receive remote notifications and clear any type of notification.",
77
"dependencies": {

0 commit comments

Comments
 (0)