Skip to content

Commit

Permalink
Merge pull request #405 from Pushwoosh/feature/SDK-356-foreground-pus…
Browse files Browse the repository at this point in the history
…h-default-true

[feature][SKD-356] foreground push is enabled by default
  • Loading branch information
akidisdev authored Aug 20, 2024
2 parents 911f7a4 + 82ad701 commit 068bd70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<issue>https://github.com/Pushwoosh/pushwoosh-phonegap-plugin/issues</issue>

<preference name="LOG_LEVEL" default="DEBUG" />
<preference name="IOS_FOREGROUND_ALERT_TYPE" default="NONE" />
<preference name="ANDROID_FOREGROUND_PUSH" default="false" />
<preference name="IOS_FOREGROUND_ALERT_TYPE" default="ALERT" />
<preference name="ANDROID_FOREGROUND_PUSH" default="true" />

<js-module src="www/PushNotification.js" name="PushNotification">
<clobbers target="plugins.pushNotification" />
Expand Down
4 changes: 2 additions & 2 deletions src/ios/PushNotification.m
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ - (void)setLanguage:(CDVInvokedUrlCommand *)command {
}

- (void)setShowPushnotificationAlert:(CDVInvokedUrlCommand *)command {
BOOL showPushnotificationAlert = command.arguments[0];
self.pushManager.showPushnotificationAlert = showPushnotificationAlert;
id showPushnotificationAlert = command.arguments[0];
self.pushManager.showPushnotificationAlert = [showPushnotificationAlert boolValue];
}

- (void)startBeaconPushes:(CDVInvokedUrlCommand *)command {
Expand Down

0 comments on commit 068bd70

Please sign in to comment.