Skip to content

Commit 57263d4

Browse files
authored
Merge pull request #131 from urbanairship/MOBILE-2960
[MOBILE-2960] Patch 9.0.3
2 parents 9188bd2 + 1c932c1 commit 57263d4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Assets/Plugins/iOS/UAUnityPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,9 @@ - (void)receivedNotificationResponse:(UNNotificationResponse *)notificationRespo
438438

439439

440440
- (void)channelUpdated:(NSNotification *)notification {
441-
NSString *channelID = notification.userInfo[UAChannel.channelUpdatedEvent];
441+
NSString *channelID = notification.userInfo[UAChannel.channelIdentifierKey];
442442
UA_LDEBUG(@"channelUpdated: %@", channelID);
443-
if (self.listener && !channelID) {
443+
if (self.listener && channelID) {
444444
UnitySendMessage(MakeStringCopy([self.listener UTF8String]),
445445
"OnChannelUpdated",
446446
MakeStringCopy([channelID UTF8String]));

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Unity Plugin ChangeLog
22

3+
## Version 9.0.3 - April 6, 2022
4+
5+
Patch release that fixes an other iOS crash related to channel update event.
6+
7+
### Changes
8+
- Fix iOS crash when channel is updated
9+
310
## Version 9.0.2 - March 15, 2022
411

512
Patch release that fixes an iOS crash related to push registration.

airship.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Plugin version
2-
version = 9.0.2
2+
version = 9.0.3
33

44
# Urban Airship iOS SDK version
55
iosAirshipVersion = 16.1.1

0 commit comments

Comments
 (0)