pushwoosh-react-native-plugin 6.1.56 → 6.1.57

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/index.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  declare module 'pushwoosh-react-native-plugin' {
2
2
  interface PushwooshConfig {
3
3
  pw_appid: string;
4
- /** @deprecated FCM Sender ID is no longer required. Firebase Cloud Messaging configuration is handled automatically via google-services.json. */
5
- project_number?: string;
6
4
  pw_notification_handling?: string;
7
5
  }
8
6
  type LocalNotification = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pushwoosh-react-native-plugin",
3
- "version": "6.1.56",
3
+ "version": "6.1.57",
4
4
  "description": "This plugin allows you to send and receive push notifications. Powered by Pushwoosh (www.pushwoosh.com).",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "pushwoosh-react-native-plugin"
3
- s.version = "6.1.56"
3
+ s.version = "6.1.57"
4
4
  s.summary = "React Native Pushwoosh Push Notifications module"
5
5
  s.requires_arc = true
6
6
  s.author = 'Pushwoosh'
@@ -15,6 +15,6 @@ Pod::Spec.new do |s|
15
15
  s.static_framework = true
16
16
 
17
17
  s.dependency 'React'
18
- s.dependency 'PushwooshXCFramework', '7.0.32'
18
+ s.dependency 'PushwooshXCFramework', '7.0.33'
19
19
  s.dependency 'PushwooshInboxUIXCFramework'
20
20
  end
@@ -37,7 +37,7 @@ android {
37
37
  }
38
38
 
39
39
  ext {
40
- pushwoosh = "6.7.59"
40
+ pushwoosh = "6.7.60"
41
41
  }
42
42
 
43
43
  dependencies {
@@ -5,8 +5,6 @@ import android.os.Bundle;
5
5
  import android.content.Context;
6
6
  import android.content.Intent;
7
7
  import android.graphics.Color;
8
- import android.text.TextUtils;
9
-
10
8
  import androidx.annotation.NonNull;
11
9
  import androidx.annotation.Nullable;
12
10
 
@@ -111,7 +109,6 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
111
109
  @ReactMethod
112
110
  public void init(ReadableMap config, Callback success, Callback error) {
113
111
  String appId = config.hasKey("pw_appid") ? config.getString("pw_appid") : null;
114
- String projectId = config.hasKey("project_number") ? config.getString("project_number") : null;
115
112
 
116
113
  if (appId == null) {
117
114
  if (error != null) {
@@ -121,10 +118,6 @@ public class PushwooshPlugin extends ReactContextBaseJavaModule implements Lifec
121
118
  }
122
119
 
123
120
  Pushwoosh.getInstance().setAppId(appId);
124
-
125
- if (!TextUtils.isEmpty(projectId)) {
126
- Pushwoosh.getInstance().setSenderId(projectId);
127
- }
128
121
 
129
122
  synchronized (sStartPushLock) {
130
123
  if (sReceivedPushData != null) {