Skip to content

Commit

Permalink
Small check for undefined on FCMPlugin.requestPushPermissionIOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehtissot committed May 26, 2020
1 parent cc61314 commit 06a924a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/FCMPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ FCMPlugin.prototype.clearAllNotifications = function (success, error) {
// REQUEST IOS PUSH PERMISSION //
FCMPlugin.prototype.requestPushPermissionIOS = function (success, error, options) {
if (cordova.platformId !== "ios") {
success(true);
if (typeof success !== "undefined") {
success(true);
}
return;
}
var ios9SupportTimeout = 10;
Expand Down

0 comments on commit 06a924a

Please sign in to comment.