Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Kalash committed Oct 5, 2016
1 parent c87a477 commit 68997eb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Unity4.7OneSignalExample/Assets/OneSignal/src/OneSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private OSNotification DictionaryToNotification(Dictionary<string, object> 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<string, object>;
else
payload.additionalData = payloadObj["additionalData"] as Dictionary<string, object>;
Expand Down
Binary file modified Unity4.7OneSignalSDK.unitypackage
Binary file not shown.
2 changes: 1 addition & 1 deletion Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ private OSNotification DictionaryToNotification(Dictionary<string, object> 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<string, object>;
else
payload.additionalData = payloadObj["additionalData"] as Dictionary<string, object>;
Expand Down
Binary file modified Unity5OneSignalSDK.unitypackage
Binary file not shown.

0 comments on commit 68997eb

Please sign in to comment.