cordova-plugin-reteno 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -7
- package/docs/Cordova/Push notification/README.md +5 -0
- package/docs/Cordova/SetupGuide/IOS.md +2 -2
- package/docs/Cordova/SetupGuide/README.md +1 -1
- package/docs/Ionic/Push notification/README.md +5 -0
- package/docs/Ionic/SetupGuide/IOS.md +4 -4
- package/docs/Ionic/SetupGuide/README.md +1 -1
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/src/android/app/src/main/java/com/reteno/plugin/RetenoPlugin.java +6 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Reteno SDK for Cordova and Capacitor apps.
|
|
4
4
|
|
|
5
|
-
Version 2.2.
|
|
5
|
+
Version 2.2.2 includes Reteno Android SDK 2.10.2 and Reteno iOS SDK 2.7.6.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -12,8 +12,6 @@ npm install cordova-plugin-reteno
|
|
|
12
12
|
|
|
13
13
|
## Documentation
|
|
14
14
|
|
|
15
|
-
- [Bundled Cordova documentation](docs/Cordova/SetupGuide/README.md)
|
|
16
|
-
- [Bundled Ionic documentation](docs/Ionic/SetupGuide/README.md)
|
|
17
15
|
- [Cordova SDK Overview](https://docs.reteno.com/reference/cordova-sdk-setup)
|
|
18
16
|
- [Ionic SDK Overview](https://docs.reteno.com/reference/ionic-sdk)
|
|
19
17
|
|
|
@@ -24,10 +22,6 @@ npm install cordova-plugin-reteno
|
|
|
24
22
|
- [Ionic iOS SDK Setup](https://docs.reteno.com/reference/ionic-ios-sdk-setup)
|
|
25
23
|
- [Ionic Android SDK Setup](https://docs.reteno.com/reference/ionic-ios-sdk-android)
|
|
26
24
|
|
|
27
|
-
### Additional
|
|
28
|
-
|
|
29
|
-
- [Release Notes](https://github.com/reteno-com/cordova-plugin-reteno/releases)
|
|
30
|
-
|
|
31
25
|
## License
|
|
32
26
|
|
|
33
27
|
MIT
|
|
@@ -15,6 +15,11 @@ RetenoPlugin.requestNotificationPermission()
|
|
|
15
15
|
|
|
16
16
|
When app starts from push tap, get payload with `getInitialNotification()`:
|
|
17
17
|
|
|
18
|
+
On Android, the method returns only a Reteno push payload identified by
|
|
19
|
+
`es_interaction_id`. Intent extras from Branch or other deeplink SDKs are
|
|
20
|
+
ignored. If the app was not opened from a Reteno push, the method returns an
|
|
21
|
+
empty object.
|
|
22
|
+
|
|
18
23
|
```js
|
|
19
24
|
RetenoPlugin.getInitialNotification()
|
|
20
25
|
.then((data) => console.log('getInitialNotification', data))
|
|
@@ -108,12 +108,12 @@ target 'App' do
|
|
|
108
108
|
|
|
109
109
|
target 'NotificationServiceExtension' do
|
|
110
110
|
inherit! :search_paths
|
|
111
|
-
pod 'Reteno', '2.7.
|
|
111
|
+
pod 'Reteno', '2.7.6'
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
target 'NotificationContentExtension' do
|
|
115
115
|
inherit! :search_paths
|
|
116
|
-
pod 'Reteno', '2.7.
|
|
116
|
+
pod 'Reteno', '2.7.6'
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
```
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- iOS 15.0 or later
|
|
13
13
|
- Android with `cordova-android >= 12.0.0`
|
|
14
14
|
|
|
15
|
-
`cordova-plugin-reteno@2.2.
|
|
15
|
+
`cordova-plugin-reteno@2.2.2` includes Reteno Android SDK 2.10.2 and Reteno iOS SDK 2.7.6.
|
|
16
16
|
|
|
17
17
|
## Getting started with Reteno Plugin / Setup guide
|
|
18
18
|
|
|
@@ -9,6 +9,11 @@ console.log('Permission result:', granted);
|
|
|
9
9
|
|
|
10
10
|
## Get initial notification
|
|
11
11
|
|
|
12
|
+
On Android, `getInitialNotification()` returns only a Reteno push payload
|
|
13
|
+
identified by `es_interaction_id`. Intent extras from Branch or other deeplink
|
|
14
|
+
SDKs are ignored. If the app was not opened from a Reteno push, the method
|
|
15
|
+
returns an empty object.
|
|
16
|
+
|
|
12
17
|
```ts
|
|
13
18
|
const initial = await this.reteno.getInitialNotification();
|
|
14
19
|
console.log('Initial push payload:', initial);
|
|
@@ -83,12 +83,12 @@ For extension targets add in `platforms/ios/Podfile`:
|
|
|
83
83
|
target 'App' do
|
|
84
84
|
target 'NotificationServiceExtension' do
|
|
85
85
|
inherit! :search_paths
|
|
86
|
-
pod 'Reteno', '2.7.
|
|
86
|
+
pod 'Reteno', '2.7.6'
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
target 'NotificationContentExtension' do
|
|
90
90
|
inherit! :search_paths
|
|
91
|
-
pod 'Reteno', '2.7.
|
|
91
|
+
pod 'Reteno', '2.7.6'
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
94
|
```
|
|
@@ -211,12 +211,12 @@ target 'App' do
|
|
|
211
211
|
|
|
212
212
|
target 'NotificationServiceExtension' do
|
|
213
213
|
inherit! :search_paths
|
|
214
|
-
pod 'Reteno', '2.7.
|
|
214
|
+
pod 'Reteno', '2.7.6'
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
target 'NotificationContentExtension' do
|
|
218
218
|
inherit! :search_paths
|
|
219
|
-
pod 'Reteno', '2.7.
|
|
219
|
+
pod 'Reteno', '2.7.6'
|
|
220
220
|
end
|
|
221
221
|
end
|
|
222
222
|
```
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
- iOS 15.0+
|
|
13
13
|
- Android with `cordova-android >= 12.0.0`
|
|
14
14
|
|
|
15
|
-
`cordova-plugin-reteno@2.2.
|
|
15
|
+
`cordova-plugin-reteno@2.2.2` includes Reteno Android SDK 2.10.2 and Reteno iOS SDK 2.7.6.
|
|
16
16
|
|
|
17
17
|
## Install plugin and wrapper
|
|
18
18
|
|
package/package.json
CHANGED
package/plugin.xml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<?xml version='1.0' encoding='utf-8'?>
|
|
2
|
-
<plugin id="cordova-plugin-reteno" version="2.2.
|
|
2
|
+
<plugin id="cordova-plugin-reteno" version="2.2.2" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
|
|
3
3
|
<name>cordova-plugin-reteno</name>
|
|
4
4
|
<engines>
|
|
5
5
|
<engine name="cordova-android" version=">=12.0.0" />
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
-->
|
|
86
86
|
<config></config>
|
|
87
87
|
<pods>
|
|
88
|
-
<pod name="Reteno" spec="2.7.
|
|
88
|
+
<pod name="Reteno" spec="2.7.6" />
|
|
89
89
|
<pod name="FirebaseMessaging" />
|
|
90
90
|
</pods>
|
|
91
91
|
</podspec>
|
|
@@ -1249,6 +1249,12 @@ public class RetenoPlugin extends CordovaPlugin {
|
|
|
1249
1249
|
if (extras == null || extras.isEmpty()) {
|
|
1250
1250
|
return;
|
|
1251
1251
|
}
|
|
1252
|
+
// Reteno uses the interaction id as the canonical identifier for push interactions.
|
|
1253
|
+
// App/deep-link SDK extras (for example Branch) must not be exposed as an initial
|
|
1254
|
+
// Reteno notification.
|
|
1255
|
+
if (!extras.containsKey("es_interaction_id")) {
|
|
1256
|
+
return;
|
|
1257
|
+
}
|
|
1252
1258
|
|
|
1253
1259
|
initialNotification = RetenoUtil.bundleToJson(extras);
|
|
1254
1260
|
}
|