-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for SDK initialization #688
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #688 +/- ##
==========================================
- Coverage 62.74% 62.70% -0.04%
==========================================
Files 75 75
Lines 4678 4687 +9
Branches 529 530 +1
==========================================
+ Hits 2935 2939 +4
- Misses 1444 1447 +3
- Partials 299 301 +2 ☔ View full report in Codecov by Sentry. |
} | ||
|
||
/** | ||
* Disables the device from push notifications | ||
*/ | ||
public void disablePush() { | ||
IterablePushRegistrationData data = new IterablePushRegistrationData(_email, _userId, _authToken, getPushIntegrationName(), IterablePushRegistrationData.PushRegistrationAction.DISABLE); | ||
IterablePushRegistration.executePushRegistrationTask(data); | ||
if (checkSDKInitialization()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very important checks!
@@ -1110,20 +1123,20 @@ public void updateUser(@NonNull JSONObject dataFields, Boolean mergeNestedObject | |||
* user email or user ID is set before calling this method. | |||
*/ | |||
public void registerForPush() { | |||
if (!checkSDKInitialization()) { | |||
return; | |||
if (checkSDKInitialization()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better now..
🔹 Jira Ticket(s) if any
✏️ Description