Skip to content

Commit 2ea381d

Browse files
authored
fix default value for ios
currently crashes here, since its a nil value
1 parent c44e661 commit 2ea381d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local-notifications.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
138138

139139
const userInfoDict = new NSMutableDictionary({capacity: 2});
140140
userInfoDict.setObjectForKey(options.forceShowWhenInForeground, "forceShowWhenInForeground");
141-
userInfoDict.setObjectForKey(options.priority, "priority");
141+
userInfoDict.setObjectForKey(options.priority || 0, "priority");
142142
content.userInfo = userInfoDict;
143143

144144
// Notification trigger and repeat

0 commit comments

Comments
 (0)