Skip to content

Commit 6cc8416

Browse files
committed
Release commit to 3.1.0
* Update Android to 4.4.1 * Update iOS to 3.5.3, update Notification Service to new didReceiveNotificationExtensionRequest method
1 parent f9da702 commit 6cc8416

File tree

7 files changed

+9
-17
lines changed

7 files changed

+9
-17
lines changed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'com.onesignal.flutter'
2-
version '3.0.0'
2+
version '3.1.0'
33

44
buildscript {
55
repositories {
@@ -34,7 +34,7 @@ android {
3434
}
3535

3636
dependencies {
37-
api 'com.onesignal:OneSignal:4.4.0'
37+
api 'com.onesignal:OneSignal:4.4.1'
3838
}
3939

4040
// Adds required manifestPlaceholders keys to allow mainifest merge gradle step to complete

example/ios/OneSignalNotificationServiceExtension/NotificationService.m

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,7 @@ - (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withConte
2525
self.contentHandler = contentHandler;
2626
self.bestAttemptContent = [request.content mutableCopy];
2727

28-
[OneSignal didReceiveNotificationExtensionRequest:self.receivedRequest withMutableNotificationContent:self.bestAttemptContent];
29-
30-
// DEBUGGING: Uncomment the 2 lines below and comment out the one above to ensure this extension is excuting
31-
// Note, this extension only runs when mutable-content is set
32-
// Setting an attachment or action buttons automatically adds this
33-
// NSLog(@"Running NotificationServiceExtension");
34-
// self.bestAttemptContent.body = [@"[Modified] " stringByAppendingString:self.bestAttemptContent.body];
35-
36-
self.contentHandler(self.bestAttemptContent);
28+
[OneSignal didReceiveNotificationExtensionRequest:self.receivedRequest withMutableNotificationContent:self.bestAttemptContent withContentHandler:self.contentHandler];
3729
}
3830

3931
- (void)serviceExtensionTimeWillExpire {

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ target 'Runner' do
3232
end
3333

3434
target 'OneSignalNotificationServiceExtension' do
35-
pod 'OneSignalXCFramework', '3.4.4'
35+
pod 'OneSignalXCFramework', '3.5.3'
3636
end
3737

3838
post_install do |installer|

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev_dependencies:
1717
sdk: flutter
1818

1919
onesignal_flutter:
20-
path: ^3.0.0
20+
path: ^3.1.0
2121

2222
# For information on the generic Dart part of this file, see the
2323
# following page: https://www.dartlang.org/tools/pub/pubspec

ios/Classes/OneSignalPlugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#import <Flutter/Flutter.h>
2929
#import <OneSignal/OneSignal.h>
3030

31-
@interface OneSignalPlugin : NSObject<FlutterPlugin, OSSubscriptionObserver, OSPermissionObserver, OSEmailSubscriptionObserver>
31+
@interface OneSignalPlugin : NSObject<FlutterPlugin, OSSubscriptionObserver, OSPermissionObserver, OSEmailSubscriptionObserver, OSSMSSubscriptionObserver>
3232

3333
// Do NOT initialize instances of this class.
3434
// You must only reference the shared instance.

ios/onesignal_flutter.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
Pod::Spec.new do |s|
55
s.name = 'onesignal_flutter'
6-
s.version = '3.0.0'
6+
s.version = '3.1.0'
77
s.summary = 'The OneSignal Flutter SDK'
88
s.description = 'Allows you to easily add OneSignal to your flutter projects, to make sending and handling push notifications easy'
99
s.homepage = 'https://www.onesignal.com'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
1313
s.source_files = 'Classes/**/*'
1414
s.public_header_files = 'Classes/**/*.h'
1515
s.dependency 'Flutter'
16-
s.dependency 'OneSignalXCFramework', '3.4.4'
16+
s.dependency 'OneSignalXCFramework', '3.5.3'
1717
s.ios.deployment_target = '9.0'
1818
s.static_framework = true
1919
end

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: onesignal_flutter
22
description: OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
3-
version: 3.0.0
3+
version: 3.1.0
44
author: Brad Hesse <[email protected]>, Josh Kasten <[email protected]>
55
homepage: https://github.com/OneSignal/OneSignal-Flutter-SDK
66

0 commit comments

Comments
 (0)