Skip to content

Commit 25908c2

Browse files
Merge pull request #178 from patricklx/patch-1
fix default value for ios
2 parents c44e661 + 2ea381d commit 25908c2

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)