diff --git a/Unity4.7OneSignalExample/Assets/OneSignal/src/OneSignal.cs b/Unity4.7OneSignalExample/Assets/OneSignal/src/OneSignal.cs index 40a1270c4..38618c4ae 100755 --- a/Unity4.7OneSignalExample/Assets/OneSignal/src/OneSignal.cs +++ b/Unity4.7OneSignalExample/Assets/OneSignal/src/OneSignal.cs @@ -378,7 +378,7 @@ private OSNotification DictionaryToNotification(Dictionary jsonO if (payloadObj.ContainsKey("subtitle")) payload.subtitle = payloadObj["subtitle"] as string; if (payloadObj.ContainsKey("launchURL")) payload.launchURL = payloadObj["launchURL"] as string; if (payloadObj.ContainsKey("additionalData")) { - if(payaoadObj["additionalData"] is string) + if(payloadObj["additionalData"] is string) payload.additionalData = Json.Deserialize(payloadObj["additionalData"] as string) as Dictionary; else payload.additionalData = payloadObj["additionalData"] as Dictionary; diff --git a/Unity4.7OneSignalSDK.unitypackage b/Unity4.7OneSignalSDK.unitypackage index e9c75a5b9..bc117bdc2 100644 Binary files a/Unity4.7OneSignalSDK.unitypackage and b/Unity4.7OneSignalSDK.unitypackage differ diff --git a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs index 40a1270c4..38618c4ae 100755 --- a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs +++ b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs @@ -378,7 +378,7 @@ private OSNotification DictionaryToNotification(Dictionary jsonO if (payloadObj.ContainsKey("subtitle")) payload.subtitle = payloadObj["subtitle"] as string; if (payloadObj.ContainsKey("launchURL")) payload.launchURL = payloadObj["launchURL"] as string; if (payloadObj.ContainsKey("additionalData")) { - if(payaoadObj["additionalData"] is string) + if(payloadObj["additionalData"] is string) payload.additionalData = Json.Deserialize(payloadObj["additionalData"] as string) as Dictionary; else payload.additionalData = payloadObj["additionalData"] as Dictionary; diff --git a/Unity5OneSignalSDK.unitypackage b/Unity5OneSignalSDK.unitypackage index 1cf0b71a4..26d960ae1 100644 Binary files a/Unity5OneSignalSDK.unitypackage and b/Unity5OneSignalSDK.unitypackage differ