Skip to content

Commit db0f20a

Browse files
fix(messaging): FCM iOS payload parsing (#53)
* fix(messaging): fix parsing ios data contents * fix(messaging): add null check for custom data
1 parent 4ccec6d commit db0f20a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/firebase-messaging/platforms/ios/src/TNSFirebaseRemoteMessage.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ func parseRemoteMessage(_ remoteMessage:Dictionary<AnyHashable, Any>)-> Dictiona
144144
continue;
145145
}
146146

147-
148-
data[key] = msg.value
147+
if(key != nil){
148+
data[key!] = msg.value
149+
}
149150

150151
}
151152

0 commit comments

Comments
 (0)