Skip to content

Commit 8efa1df

Browse files
committed
Fix launchUrl Android returning null
* Fix parsing issue, rename key from launchURL to launchUrl
1 parent 362e0b0 commit 8efa1df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/onesignal/flutter/OneSignalSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static HashMap<String, Object> convertNotificationToMap(OSNotification notificat
152152
if (notification.getSmallIconAccentColor() != null)
153153
hash.put("smallIconAccentColor", notification.getSmallIconAccentColor());
154154
if (notification.getLaunchURL() != null)
155-
hash.put("launchURL", notification.getLaunchURL());
155+
hash.put("launchUrl", notification.getLaunchURL());
156156
if (notification.getSound() != null)
157157
hash.put("sound", notification.getSound());
158158
if (notification.getLedColor() != null)

0 commit comments

Comments
 (0)