@selligent-marketing-cloud/selligent-react-native 2.8.0 → 2.9.0
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/CHANGELOG.md +13 -2
- package/README.md +7 -2
- package/RNSelligent.podspec +1 -1
- package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +1 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +15 -1
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +1 -1
- package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +15 -1
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/libs/sdk-release.aar +0 -0
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +3 -0
- package/android/src/main/java/com/selligent/Settings.java +24 -0
- package/ios/include/SMManager+UserNotification.h +14 -1
- package/ios/libSelligentMobile.a +0 -0
- package/package.json +1 -1
- package/android/build/tmp/compileDebugJavaWithJavac/source-classes-mapping.txt +0 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.9.0] - 20 May 2022
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Add possibility to set the app's notification channel's ID, name and description on `Android` via `notificationChannelId`, `notificationChannelName`, and `notificationChannelDescription` settings keys in `selligent.json`.
|
|
7
|
+
- Add comment to README about rich push notification method invocation deprecation on iOS.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Add version 3.9.0 of the Android SDK to `android/libs`
|
|
11
|
+
- Add version 2.7.4 of the iOS SDK static library to `/ios`
|
|
12
|
+
- Change used native SDK version numbers to `3.9.0` and `2.7.4` for Android and iOS respectively in README
|
|
13
|
+
|
|
3
14
|
## [2.8.0] - 18 February 2022
|
|
4
15
|
|
|
5
16
|
### Added
|
|
6
17
|
- Re-add plotProjects dependency for Android in `android/build.gradle`
|
|
7
18
|
- Re-add geolocation native module functions (`enableGeolocation`, `isGeoLocationEnabled`) for Android
|
|
8
|
-
- Re-
|
|
19
|
+
- Re-add geofencing header files for iOS in `ios/include` and module files in `ios/`
|
|
9
20
|
- Re-add plotProjects and geolocation documentation to README
|
|
10
21
|
- Add documentation regarding the Gradle build tool version and Gradle version compatability
|
|
11
22
|
|
|
12
23
|
### Changed
|
|
13
|
-
-
|
|
24
|
+
- Add version 3.8.1 of the Android SDK to `android/libs`
|
|
14
25
|
- Swap the deprecated maven plugin and its archiving capabilities for the maven-publish plugin in `android/build.gradle`
|
|
15
26
|
- Add version 2.7.2 of the iOS SDK static library to `ios/`
|
|
16
27
|
- Change used native SDK version numbers to `3.8.1` and `2.7.2` for Android and iOS respectively in README
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ This module uses the native Selligent SDKs:
|
|
|
13
13
|
|
|
14
14
|
| SDK | Version |
|
|
15
15
|
| ----------------------------------------------------------------------- | ------- |
|
|
16
|
-
| [Android](https://github.com/SelligentMarketingCloud/MobileSDK-Android) | 3.
|
|
17
|
-
| [iOS](https://github.com/SelligentMarketingCloud/MobileSDK-iOS) | 2.7.
|
|
16
|
+
| [Android](https://github.com/SelligentMarketingCloud/MobileSDK-Android) | 3.9.0 |
|
|
17
|
+
| [iOS](https://github.com/SelligentMarketingCloud/MobileSDK-iOS) | 2.7.4 |
|
|
18
18
|
|
|
19
19
|
## ToC
|
|
20
20
|
|
|
@@ -70,6 +70,9 @@ This module uses the native Selligent SDKs:
|
|
|
70
70
|
| loadCacheAsynchronously | boolean | No | Android Only |
|
|
71
71
|
| fullyQualifiedNotificationActivityClassName | string | No | Android Only |
|
|
72
72
|
| notificationIconColor | string | No | Android Only |
|
|
73
|
+
| notificationChannelId | string | No | Android Only |
|
|
74
|
+
| notificationChannelName | string | No | Android Only |
|
|
75
|
+
| notificationChannelDescription | string | No | Android Only |
|
|
73
76
|
|
|
74
77
|
|
|
75
78
|
|
|
@@ -438,6 +441,8 @@ Add the following properties to the `selligent.json` file:
|
|
|
438
441
|
Make sure you add your `appGroupId` to the `selligent.json`.
|
|
439
442
|
> **IMPORTANT!** make sure your `appGroupId` has the following structure or it will not work: `group.{MAIN_APP_BUNDLE_ID}`
|
|
440
443
|
|
|
444
|
+
> **IMPORTAND** Since v2.9.0, `-(void)didReceiveNotification:(UNNotification *)notification` of `SMManager+RemoteNotification` has become deprecated. You will need to invoke `-(void)didReceiveNotification:(UNNotification *)notification withContext` instead. Consult [**the iOS documentation**](https://github.com/SelligentMarketingCloud/MobileSDK-iOS/tree/master/Documentation#start-the-sdk-from-inside-the-extension-1) for more details.
|
|
445
|
+
|
|
441
446
|
#### Geolocation
|
|
442
447
|
|
|
443
448
|
For geolocation services, follow section [**Geolocation**](https://github.com/SelligentMarketingCloud/MobileSDK-iOS/tree/master/Documentation#geolocation), of the native documentation. You also need to configure several permissions described [**here**](https://github.com/SelligentMarketingCloud/MobileSDK-iOS/tree/master/Documentation#permission-for-geolocation).
|
package/RNSelligent.podspec
CHANGED
|
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
DESC
|
|
13
13
|
s.homepage = "https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative"
|
|
14
14
|
s.license = "MIT"
|
|
15
|
-
s.platform = :ios, "
|
|
15
|
+
s.platform = :ios, "11.0"
|
|
16
16
|
s.source = { :git => "https://github.com/SelligentMarketingCloud/MobileSDK-ReactNative.git", :tag => "#{s.version}" }
|
|
17
17
|
|
|
18
18
|
s.source_files = "ios/**/*.{h,m}"
|
|
@@ -8,5 +8,5 @@ public final class BuildConfig {
|
|
|
8
8
|
public static final String LIBRARY_PACKAGE_NAME = "com.selligent";
|
|
9
9
|
public static final String BUILD_TYPE = "debug";
|
|
10
10
|
// Selligent settings
|
|
11
|
-
public static final String SELLIGENT_SETTINGS = "{\"url\":\"https://mobile.emsecure.net/mobilepush/api/\",\"clientId\":\"4acaf646-ef68-4b78-9a30-8412d3007cba\",\"privateKey\":\"TzYgBoYF+I1fZ+1Tapdpz+XQXKyLUZocDzmWV1kBYHKIQ8WWWXL61/m7FWo8mY6hSrAMVUoH1EaViq7+dgQ9Jg==\",\"fullyQualifiedNotificationActivityClassName\":\"com.selligentdevapprn.MainActivity\",\"inAppMessageRefreshType\":11,\"configureLocationServices\":true,\"notificationSmallIcon\":\"ic_notification\",\"notificationLargeIcon\":\"ic_notification\",\"notificationIconColor\":\"#FF0000\",\"appGroupId\":\"group.be.appfoundry.selligent.reactnative.development.app\"}";
|
|
11
|
+
public static final String SELLIGENT_SETTINGS = "{\"url\":\"https://mobile.emsecure.net/mobilepush/api/\",\"clientId\":\"4acaf646-ef68-4b78-9a30-8412d3007cba\",\"privateKey\":\"TzYgBoYF+I1fZ+1Tapdpz+XQXKyLUZocDzmWV1kBYHKIQ8WWWXL61/m7FWo8mY6hSrAMVUoH1EaViq7+dgQ9Jg==\",\"fullyQualifiedNotificationActivityClassName\":\"com.selligentdevapprn.MainActivity\",\"inAppMessageRefreshType\":11,\"configureLocationServices\":true,\"notificationSmallIcon\":\"ic_notification\",\"notificationLargeIcon\":\"ic_notification\",\"notificationIconColor\":\"#FF0000\",\"appGroupId\":\"group.be.appfoundry.selligent.reactnative.development.app\",\"notificationChannelId\":\"SMChannel001\",\"notificationChannelName\":\"SMDefaultChannel\",\"notificationChannelDescription\":\"\"}";
|
|
12
12
|
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1263,6 +1263,7 @@ int color emui_color_gray_10 0x0
|
|
|
1263
1263
|
int color emui_color_gray_7 0x0
|
|
1264
1264
|
int color error_color_material_dark 0x0
|
|
1265
1265
|
int color error_color_material_light 0x0
|
|
1266
|
+
int color fcm_test_color 0x0
|
|
1266
1267
|
int color foreground_material_dark 0x0
|
|
1267
1268
|
int color foreground_material_light 0x0
|
|
1268
1269
|
int color highlighted_text_material_dark 0x0
|
|
@@ -2468,6 +2469,9 @@ int drawable abc_textfield_search_activated_mtrl_alpha 0x0
|
|
|
2468
2469
|
int drawable abc_textfield_search_default_mtrl_alpha 0x0
|
|
2469
2470
|
int drawable abc_textfield_search_material 0x0
|
|
2470
2471
|
int drawable abc_vector_test 0x0
|
|
2472
|
+
int drawable adaptive_icon 0x0
|
|
2473
|
+
int drawable adaptive_icon_background 0x0
|
|
2474
|
+
int drawable adaptive_icon_foreground 0x0
|
|
2471
2475
|
int drawable autofill_inline_suggestion_chip_background 0x0
|
|
2472
2476
|
int drawable avd_hide_password 0x0
|
|
2473
2477
|
int drawable avd_show_password 0x0
|
|
@@ -2503,6 +2507,8 @@ int drawable design_ic_visibility 0x0
|
|
|
2503
2507
|
int drawable design_ic_visibility_off 0x0
|
|
2504
2508
|
int drawable design_password_eye 0x0
|
|
2505
2509
|
int drawable design_snackbar_background 0x0
|
|
2510
|
+
int drawable gcm_icon 0x0
|
|
2511
|
+
int drawable gcm_icon2 0x0
|
|
2506
2512
|
int drawable googleg_disabled_color_18 0x0
|
|
2507
2513
|
int drawable googleg_standard_color_18 0x0
|
|
2508
2514
|
int drawable ic_clock_black_24dp 0x0
|
|
@@ -2515,6 +2521,7 @@ int drawable ic_mtrl_chip_checked_black 0x0
|
|
|
2515
2521
|
int drawable ic_mtrl_chip_checked_circle 0x0
|
|
2516
2522
|
int drawable ic_mtrl_chip_close_circle 0x0
|
|
2517
2523
|
int drawable ic_stat_name 0x0
|
|
2524
|
+
int drawable icon_with_gradient 0x0
|
|
2518
2525
|
int drawable m3_appbar_background 0x0
|
|
2519
2526
|
int drawable m3_popupmenu_background_overlay 0x0
|
|
2520
2527
|
int drawable m3_radiobutton_ripple 0x0
|
|
@@ -3176,6 +3183,7 @@ int layout fragment_sm_inappcontent_recycler_view 0x0
|
|
|
3176
3183
|
int layout fragment_sm_inappcontent_web_view 0x0
|
|
3177
3184
|
int layout fragment_smdialog_material 0x0
|
|
3178
3185
|
int layout hms_download_progress 0x0
|
|
3186
|
+
int layout hwpush_trans_activity 0x0
|
|
3179
3187
|
int layout iac_html_card_layout 0x0
|
|
3180
3188
|
int layout m3_alert_dialog 0x0
|
|
3181
3189
|
int layout m3_alert_dialog_actions 0x0
|
|
@@ -3275,7 +3283,7 @@ int menu menu_notification 0x0
|
|
|
3275
3283
|
int menu menu_sell_base 0x0
|
|
3276
3284
|
int menu menu_view 0x0
|
|
3277
3285
|
int plurals mtrl_badge_content_description 0x0
|
|
3278
|
-
int raw
|
|
3286
|
+
int raw gcm_bip 0x0
|
|
3279
3287
|
int string abc_action_bar_home_description 0x0
|
|
3280
3288
|
int string abc_action_bar_up_description 0x0
|
|
3281
3289
|
int string abc_action_menu_overflow_description 0x0
|
|
@@ -3317,6 +3325,7 @@ int string abc_shareactionprovider_share_with_application 0x0
|
|
|
3317
3325
|
int string abc_toolbar_collapse_description 0x0
|
|
3318
3326
|
int string action_back_label 0x0
|
|
3319
3327
|
int string action_forward_label 0x0
|
|
3328
|
+
int string ag_sdk_cbg_root 0x0
|
|
3320
3329
|
int string alert_description 0x0
|
|
3321
3330
|
int string androidx_startup 0x0
|
|
3322
3331
|
int string app_icon_sticky_notification_description 0x0
|
|
@@ -3383,7 +3392,9 @@ int string error_icon_content_description 0x0
|
|
|
3383
3392
|
int string exposed_dropdown_menu_content_description 0x0
|
|
3384
3393
|
int string fab_transformation_scrim_behavior 0x0
|
|
3385
3394
|
int string fab_transformation_sheet_behavior 0x0
|
|
3395
|
+
int string fcm_2_args 0x0
|
|
3386
3396
|
int string fcm_fallback_notification_channel_label 0x0
|
|
3397
|
+
int string fcm_no_args 0x0
|
|
3387
3398
|
int string gcm_fallback_notification_channel_label 0x0
|
|
3388
3399
|
int string header_description 0x0
|
|
3389
3400
|
int string hide_bottom_view_on_scroll_behavior 0x0
|
|
@@ -3394,6 +3405,8 @@ int string hms_base_vmall 0x0
|
|
|
3394
3405
|
int string hms_bindfaildlg_message 0x0
|
|
3395
3406
|
int string hms_bindfaildlg_title 0x0
|
|
3396
3407
|
int string hms_cancel 0x0
|
|
3408
|
+
int string hms_cancel_after_cancel 0x0
|
|
3409
|
+
int string hms_cancel_install_message 0x0
|
|
3397
3410
|
int string hms_check_failure 0x0
|
|
3398
3411
|
int string hms_check_no_update 0x0
|
|
3399
3412
|
int string hms_checking 0x0
|
|
@@ -3406,6 +3419,7 @@ int string hms_downloading_loading 0x0
|
|
|
3406
3419
|
int string hms_downloading_new 0x0
|
|
3407
3420
|
int string hms_gamebox_name 0x0
|
|
3408
3421
|
int string hms_install 0x0
|
|
3422
|
+
int string hms_install_after_cancel 0x0
|
|
3409
3423
|
int string hms_install_message 0x0
|
|
3410
3424
|
int string hms_is_spoof 0x0
|
|
3411
3425
|
int string hms_push_channel 0x0
|
package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Wed May 18 23:29:26 CEST 2022
|
|
Binary file
|
|
Binary file
|
package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1264,6 +1264,7 @@ color emui_color_gray_10
|
|
|
1264
1264
|
color emui_color_gray_7
|
|
1265
1265
|
color error_color_material_dark
|
|
1266
1266
|
color error_color_material_light
|
|
1267
|
+
color fcm_test_color
|
|
1267
1268
|
color foreground_material_dark
|
|
1268
1269
|
color foreground_material_light
|
|
1269
1270
|
color highlighted_text_material_dark
|
|
@@ -2469,6 +2470,9 @@ drawable abc_textfield_search_activated_mtrl_alpha
|
|
|
2469
2470
|
drawable abc_textfield_search_default_mtrl_alpha
|
|
2470
2471
|
drawable abc_textfield_search_material
|
|
2471
2472
|
drawable abc_vector_test
|
|
2473
|
+
drawable adaptive_icon
|
|
2474
|
+
drawable adaptive_icon_background
|
|
2475
|
+
drawable adaptive_icon_foreground
|
|
2472
2476
|
drawable autofill_inline_suggestion_chip_background
|
|
2473
2477
|
drawable avd_hide_password
|
|
2474
2478
|
drawable avd_show_password
|
|
@@ -2504,6 +2508,8 @@ drawable design_ic_visibility
|
|
|
2504
2508
|
drawable design_ic_visibility_off
|
|
2505
2509
|
drawable design_password_eye
|
|
2506
2510
|
drawable design_snackbar_background
|
|
2511
|
+
drawable gcm_icon
|
|
2512
|
+
drawable gcm_icon2
|
|
2507
2513
|
drawable googleg_disabled_color_18
|
|
2508
2514
|
drawable googleg_standard_color_18
|
|
2509
2515
|
drawable ic_clock_black_24dp
|
|
@@ -2516,6 +2522,7 @@ drawable ic_mtrl_chip_checked_black
|
|
|
2516
2522
|
drawable ic_mtrl_chip_checked_circle
|
|
2517
2523
|
drawable ic_mtrl_chip_close_circle
|
|
2518
2524
|
drawable ic_stat_name
|
|
2525
|
+
drawable icon_with_gradient
|
|
2519
2526
|
drawable m3_appbar_background
|
|
2520
2527
|
drawable m3_popupmenu_background_overlay
|
|
2521
2528
|
drawable m3_radiobutton_ripple
|
|
@@ -3177,6 +3184,7 @@ layout fragment_sm_inappcontent_recycler_view
|
|
|
3177
3184
|
layout fragment_sm_inappcontent_web_view
|
|
3178
3185
|
layout fragment_smdialog_material
|
|
3179
3186
|
layout hms_download_progress
|
|
3187
|
+
layout hwpush_trans_activity
|
|
3180
3188
|
layout iac_html_card_layout
|
|
3181
3189
|
layout m3_alert_dialog
|
|
3182
3190
|
layout m3_alert_dialog_actions
|
|
@@ -3276,7 +3284,7 @@ menu menu_notification
|
|
|
3276
3284
|
menu menu_sell_base
|
|
3277
3285
|
menu menu_view
|
|
3278
3286
|
plurals mtrl_badge_content_description
|
|
3279
|
-
raw
|
|
3287
|
+
raw gcm_bip
|
|
3280
3288
|
string abc_action_bar_home_description
|
|
3281
3289
|
string abc_action_bar_up_description
|
|
3282
3290
|
string abc_action_menu_overflow_description
|
|
@@ -3318,6 +3326,7 @@ string abc_shareactionprovider_share_with_application
|
|
|
3318
3326
|
string abc_toolbar_collapse_description
|
|
3319
3327
|
string action_back_label
|
|
3320
3328
|
string action_forward_label
|
|
3329
|
+
string ag_sdk_cbg_root
|
|
3321
3330
|
string alert_description
|
|
3322
3331
|
string androidx_startup
|
|
3323
3332
|
string app_icon_sticky_notification_description
|
|
@@ -3384,7 +3393,9 @@ string error_icon_content_description
|
|
|
3384
3393
|
string exposed_dropdown_menu_content_description
|
|
3385
3394
|
string fab_transformation_scrim_behavior
|
|
3386
3395
|
string fab_transformation_sheet_behavior
|
|
3396
|
+
string fcm_2_args
|
|
3387
3397
|
string fcm_fallback_notification_channel_label
|
|
3398
|
+
string fcm_no_args
|
|
3388
3399
|
string gcm_fallback_notification_channel_label
|
|
3389
3400
|
string header_description
|
|
3390
3401
|
string hide_bottom_view_on_scroll_behavior
|
|
@@ -3395,6 +3406,8 @@ string hms_base_vmall
|
|
|
3395
3406
|
string hms_bindfaildlg_message
|
|
3396
3407
|
string hms_bindfaildlg_title
|
|
3397
3408
|
string hms_cancel
|
|
3409
|
+
string hms_cancel_after_cancel
|
|
3410
|
+
string hms_cancel_install_message
|
|
3398
3411
|
string hms_check_failure
|
|
3399
3412
|
string hms_check_no_update
|
|
3400
3413
|
string hms_checking
|
|
@@ -3407,6 +3420,7 @@ string hms_downloading_loading
|
|
|
3407
3420
|
string hms_downloading_new
|
|
3408
3421
|
string hms_gamebox_name
|
|
3409
3422
|
string hms_install
|
|
3423
|
+
string hms_install_after_cancel
|
|
3410
3424
|
string hms_install_message
|
|
3411
3425
|
string hms_is_spoof
|
|
3412
3426
|
string hms_push_channel
|
|
Binary file
|
|
Binary file
|
|
@@ -15,6 +15,9 @@ class SMSettingsFactory {
|
|
|
15
15
|
smSettings.DoNotFetchTheToken = settings.getDoNotFetchTheToken();
|
|
16
16
|
smSettings.DoNotListenToThePush = settings.getDoNotListenToThePush();
|
|
17
17
|
smSettings.LoadCacheAsynchronously = settings.getLoadCacheAsynchronously();
|
|
18
|
+
smSettings.NotificationChannelId = settings.getNotificationChannelId();
|
|
19
|
+
smSettings.NotificationChannelName = settings.getNotificationChannelName();
|
|
20
|
+
smSettings.NotificationChannelDescription = settings.getNotificationChannelDescription();
|
|
18
21
|
|
|
19
22
|
final ClearCacheIntervalValue clearCacheIntervalValue = settings.getClearCacheIntervalValue();
|
|
20
23
|
if (clearCacheIntervalValue != null) {
|
|
@@ -21,6 +21,9 @@ class Settings {
|
|
|
21
21
|
private ClearCacheIntervalValue clearCacheIntervalValue;
|
|
22
22
|
private InAppMessageRefreshType inAppMessageRefreshType;
|
|
23
23
|
private RemoteMessageDisplayType remoteMessageDisplayType;
|
|
24
|
+
private String notificationChannelId = "SMChannel001";
|
|
25
|
+
private String notificationChannelName = "SMDefaultChannel";
|
|
26
|
+
private String notificationChannelDescription = "";
|
|
24
27
|
|
|
25
28
|
private Settings() { }
|
|
26
29
|
|
|
@@ -80,6 +83,18 @@ class Settings {
|
|
|
80
83
|
return remoteMessageDisplayType;
|
|
81
84
|
}
|
|
82
85
|
|
|
86
|
+
public String getNotificationChannelId() {
|
|
87
|
+
return notificationChannelId;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
public String getNotificationChannelName() {
|
|
91
|
+
return notificationChannelName;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
public String getNotificationChannelDescription() {
|
|
95
|
+
return notificationChannelDescription;
|
|
96
|
+
}
|
|
97
|
+
|
|
83
98
|
public static Settings fromHashMap(HashMap<String, Object> settingsHashMap) {
|
|
84
99
|
final Settings settings = new Settings();
|
|
85
100
|
|
|
@@ -122,6 +137,15 @@ class Settings {
|
|
|
122
137
|
if (settingsHashMap.containsKey("loadCacheAsynchronously")) {
|
|
123
138
|
settings.loadCacheAsynchronously = (Boolean) settingsHashMap.get("loadCacheAsynchronously");
|
|
124
139
|
}
|
|
140
|
+
if (settingsHashMap.containsKey("notificationChannelId")) {
|
|
141
|
+
settings.notificationChannelId = (String) settingsHashMap.get("notificationChannelId");
|
|
142
|
+
}
|
|
143
|
+
if (settingsHashMap.containsKey("notificationChannelName")) {
|
|
144
|
+
settings.notificationChannelName = (String) settingsHashMap.get("notificationChannelName");
|
|
145
|
+
}
|
|
146
|
+
if (settingsHashMap.containsKey("notificationChannelDescription")) {
|
|
147
|
+
settings.notificationChannelDescription = (String) settingsHashMap.get("notificationChannelDescription");
|
|
148
|
+
}
|
|
125
149
|
|
|
126
150
|
final Double clearCacheIndex = (Double) settingsHashMap.get("clearCacheIntervalValue");
|
|
127
151
|
if (clearCacheIndex != null) {
|
|
@@ -120,7 +120,20 @@
|
|
|
120
120
|
*
|
|
121
121
|
* @param notification A UNNotification that contains information about the notification.
|
|
122
122
|
*/
|
|
123
|
-
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification;
|
|
123
|
+
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification __deprecated_msg("Method deprecated. Use `didReceiveNotification:withContext:`");
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
* Optional API, when building against iOS 10+ and using a Notification Content Extension target, to be included in NotificationViewController didReceiveNotification:
|
|
127
|
+
* Handle the push action buttons that may be present in the selligent notification payload
|
|
128
|
+
*
|
|
129
|
+
* This allows the SDK to display the action buttons in the push notification outside of the app.
|
|
130
|
+
*
|
|
131
|
+
* The category that must be added to Info.plist of the Notification Content Extension target is mandatory and must be SELLIGENT_BUTTON.
|
|
132
|
+
*
|
|
133
|
+
* @param notification A UNNotification that contains information about the notification.
|
|
134
|
+
* @param context A NSExtensionContext that contains the context information of the extension.
|
|
135
|
+
*/
|
|
136
|
+
- (void) didReceiveNotification:(UNNotification*_Nonnull)notification withContext:(NSExtensionContext*_Nullable)context;
|
|
124
137
|
|
|
125
138
|
/*!
|
|
126
139
|
* Optional API, when building against iOS 10+ and using a Notification Service Extension target, to be included in NotificationService didReceiveNotificationRequest:withContentHandler:
|
package/ios/libSelligentMobile.a
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
com/selligent/EventReceiver.java
|
|
2
|
-
com.selligent.EventReceiver
|
|
3
|
-
com/selligent/RemoteMessageDisplayType.java
|
|
4
|
-
com.selligent.RemoteMessageDisplayType
|
|
5
|
-
com/selligent/SMEventFactory.java
|
|
6
|
-
com.selligent.SMEventFactory
|
|
7
|
-
com.selligent.SMEventFactory$1
|
|
8
|
-
com/selligent/BroadcastEventType.java
|
|
9
|
-
com.selligent.BroadcastEventType
|
|
10
|
-
com/selligent/RNSelligentPackage.java
|
|
11
|
-
com.selligent.RNSelligentPackage
|
|
12
|
-
com/selligent/ButtonBroadcastEventDataParser.java
|
|
13
|
-
com.selligent.ButtonBroadcastEventDataParser
|
|
14
|
-
com/selligent/GCMTokenBroadcastEventDataParser.java
|
|
15
|
-
com.selligent.GCMTokenBroadcastEventDataParser
|
|
16
|
-
com/selligent/InAppMessageRefreshType.java
|
|
17
|
-
com.selligent.InAppMessageRefreshType
|
|
18
|
-
com/selligent/EventType.java
|
|
19
|
-
com.selligent.EventType
|
|
20
|
-
com/selligent/RNSelligent.java
|
|
21
|
-
com.selligent.RNSelligent
|
|
22
|
-
com.selligent.RNSelligent$1
|
|
23
|
-
com.selligent.RNSelligent$2
|
|
24
|
-
com.selligent.RNSelligent$3
|
|
25
|
-
com.selligent.RNSelligent$4
|
|
26
|
-
com.selligent.RNSelligent$5
|
|
27
|
-
com/selligent/BuildConfig.java
|
|
28
|
-
com.selligent.BuildConfig
|
|
29
|
-
com/selligent/InAppMessageBroadcastEventDataParser.java
|
|
30
|
-
com.selligent.InAppMessageBroadcastEventDataParser
|
|
31
|
-
com/selligent/Event.java
|
|
32
|
-
com.selligent.Event
|
|
33
|
-
com/selligent/BroadcastEventDataParser.java
|
|
34
|
-
com.selligent.BroadcastEventDataParser
|
|
35
|
-
com/selligent/ClearCacheIntervalValue.java
|
|
36
|
-
com.selligent.ClearCacheIntervalValue
|
|
37
|
-
com/selligent/SMSettingsFactory.java
|
|
38
|
-
com.selligent.SMSettingsFactory
|
|
39
|
-
com/selligent/BroadcastDataFactory.java
|
|
40
|
-
com.selligent.BroadcastDataFactory
|
|
41
|
-
com.selligent.BroadcastDataFactory$1
|
|
42
|
-
com/selligent/Settings.java
|
|
43
|
-
com.selligent.Settings
|