Skip to content

Commit

Permalink
Development (#47)
Browse files Browse the repository at this point in the history
* chore: Add Unreleased Tag to CHANGELOG

* RMET-2036 :: Updated jcenter to mavenCentral (#40)

* RMET-2045 - Firebase Cloud Messaging Plugin - Use fixed versions (#39)

* fix: use fixed versions

References: https://outsystemsrd.atlassian.net/browse/RMET-2045

* chore: update changelog

* refactor: remove jcenter

References: https://outsystemsrd.atlassian.net/browse/RMET-2036

* chore: update changelog

* feat: iOS | Add Get APNs Token (#41)

Update iOS lib files in order to include the new Get APNs Token method.
Delegate the app's `application:didRegisterForRemoteNotificationWithDeviceToken:` to Cloud Messaging's delegate extension.

* RMET-2114 FB Cloud Messaging - Android - Fix click notification without deeplink (#42)

* tentativefix: added pending intent to every notification

* chore: update lib for testing

References: https://outsystemsrd.atlassian.net/browse/RMET-2114

* chore: update lib

* feat: update messaging library to version 1.0.1

References: https://outsystemsrd.atlassian.net/browse/RMET-2114

* refactor: remove new line

* chore: update changelog

Co-authored-by: Nelson Lopes Silva <5671236+nflsilva@users.noreply.github.com>

* Fix: Silent Notifications issue (#44)

The method `application:didReceiveRemoteNotification:fetchCompletionHandler:` is not being triggered by apps that use the plugin, so it's not possible to trigger silent notifications.
The same fix was applied for the `application:didRegisterForRemoteNotificationsWithDeviceToken:` as the method suffered from the same issue.

* fix: Replace iOS code for library (#45)

Remove the iOS code and replace it for the xcframework.

* RMET-2312 :: Empty silent notification crash fix (#46)

* chrore: bump patch version to 1.0.6. Changed lib version to new patch vesion 1.0.2

* chrore: bump patch version to 1.0.6

---------

Co-authored-by: OS-ricardomoreirasilva <ricardo.moreira.silva@outsystems.com>
Co-authored-by: Alexandre Jacinto <alexandre.jacinto@outsystems.com>
Co-authored-by: Ricardo Silva <97543217+OS-ricardomoreirasilva@users.noreply.github.com>
  • Loading branch information
4 people committed Feb 24, 2023
1 parent 6f53ebb commit 32db2fb
Show file tree
Hide file tree
Showing 47 changed files with 2,499 additions and 861 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ The changes documented here do not include those from the original repository.

## [Unreleased]

## 23-02-2023
- Fix: Android - Add a guard to deal with cases when there's no data in the extras map (https://outsystemsrd.atlassian.net/browse/RMET-2312)

### 10-02-2023
- Feat: [iOS] Make library available as `xcframework` (https://outsystemsrd.atlassian.net/browse/RMET-2280).

### 26-01-2023
- Fix: [iOS] Silent Notifications not being triggered. (https://outsystemsrd.atlassian.net/browse/RPM-3590).

## [Version 1.1.0]

### 21-12-2022
Expand Down
28 changes: 3 additions & 25 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,34 +34,12 @@
</config-file>

<!-- iOS Source Files -->
<source-file src="src/ios/CoreDataManager/CoreDataManager.swift" />
<source-file src="src/ios/CoreDataManager/NotificationsModel.xcdatamodeld" />

<source-file src="src/ios/Extensions/Date+Extension.swift" />
<source-file src="src/ios/Extensions/Encodable+Extension.swift" />

<source-file src="src/ios/Managers/MessagingManager.swift" />
<source-file src="src/ios/Managers/NotificationManager.swift" />

<source-file src="src/ios/Model/OSFCMExtraData.swift" />
<source-file src="src/ios/Model/OSFCMNotification.swift" />

<source-file src="src/ios/Protocols/FirebaseMessagingProtocol.swift" />
<source-file src="src/ios/Protocols/MessagingProtocol.swift" />
<source-file src="src/ios/Protocols/UNUserNotificationCenterProtocol.swift" />

<source-file src="src/ios/Utils/FirebaseConfigurations.swift" />
<source-file src="src/ios/Utils/FirebaseMessagingErrors.swift" />
<source-file src="src/ios/Utils/FirebaseNotificationEventType.swift" />
<source-file src="src/ios/Utils/OSFCMTokenType.swift" />

<source-file src="src/ios/FirebaseMessagingApplicationDelegate.swift" />
<source-file src="src/ios/FirebaseMessagingController.swift" />

<source-file src="src/ios/OSFirebaseCloudMessaging.swift" />
<source-file src="src/ios/OSFirebaseCloudMessaging.swift" />
<header-file src="src/ios/AppDelegate+OSFirebaseCloudMessaging.h" />
<source-file src="src/ios/AppDelegate+OSFirebaseCloudMessaging.m" />

<framework src="src/ios/frameworks/OSFirebaseMessagingLib.xcframework" embed="true" custom="true" />

<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>

<podspec>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ apply plugin: 'kotlin-kapt'
dependencies {
implementation("com.github.outsystems:oscore-android:1.2.0@aar")
implementation("com.github.outsystems:oscordova-android:1.2.0@aar")
implementation("com.github.outsystems:osfirebasemessaging-android:1.0.1@aar")
implementation("com.github.outsystems:osfirebasemessaging-android:1.0.2@aar")
implementation("com.github.outsystems:osnotificationpermissions-android:0.0.4@aar")

implementation("com.google.code.gson:gson:2.8.9")
Expand Down
9 changes: 3 additions & 6 deletions src/ios/AppDelegate+OSFirebaseCloudMessaging.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#import "AppDelegate+OSFirebaseCloudMessaging.h"
#import "OutSystems-Swift.h"
#import <objc/runtime.h>
#import <OSFirebaseMessagingLib/OSFirebaseMessagingLib-Swift.h>

@implementation AppDelegate (OSFirebaseCloudMessaging)

Expand All @@ -26,15 +27,11 @@ - (BOOL)application:(UIApplication *)application firebaseCloudMessagingPluginDid
return YES;
}

- (void)application:(UIApplication *)application firebaseCloudMessagingDidReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
[self application:application firebaseCloudMessagingDidReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];

- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
(void)[FirebaseMessagingApplicationDelegate.shared application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}

- (void)application:(UIApplication *)application firebaseCloudMessagingdidRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
[self application:application firebaseCloudMessagingdidRegisterForRemoteNotificationsWithDeviceToken:deviceToken];

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
(void)[FirebaseMessagingApplicationDelegate.shared application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}

Expand Down
52 changes: 0 additions & 52 deletions src/ios/CoreDataManager/CoreDataManager.swift

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions src/ios/Extensions/Date+Extension.swift

This file was deleted.

14 changes: 0 additions & 14 deletions src/ios/Extensions/Encodable+Extension.swift

This file was deleted.

Loading

0 comments on commit 32db2fb

Please sign in to comment.