-
Notifications
You must be signed in to change notification settings - Fork 263
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
User model modularize Location and InAppMessages #1273
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note that LocationRequests are no longer needed as the location is sent as a User property. They are only referenced from unit tests and can be cleaned up.
emawby
force-pushed
the
user_model/modularize_location
branch
from
June 30, 2023 19:27
4cd20ab
to
b3f2f9e
Compare
emawby
changed the title
WiP User model modularize location and InAppMessages
WiP User model modularize Location and InAppMessages
Jul 10, 2023
emawby
force-pushed
the
user_model/modularize_location
branch
2 times, most recently
from
July 12, 2023 20:00
f3e075a
to
41ef681
Compare
OneSignalInAppMessages now builds. Removed dependencies on code in OneSignalHelper and OneSignalViewHelper. Moved SessionTime to OSSessionManager
The public protocols for OSInAppMessages and OSLocation have been moved to OneSignalCore along with a stub implementation. This is a PoC implementation using ClassFromString but we could use injection instead to get the concrete implementation of OneSignalLocation and OneSignalInAppMessages without using classfromstring
…ing it for location
…neSignalInAppMessages
The Migration controller will now tell the OneSignalInAppMessages framework to do its migration. This way the MigrationController doesn't need to reference internal IAM classes.
emawby
force-pushed
the
user_model/modularize_location
branch
from
July 12, 2023 20:03
41ef681
to
441e361
Compare
emawby
changed the title
WiP User model modularize Location and InAppMessages
User model modularize Location and InAppMessages
Jul 12, 2023
jkasten2
requested changes
Jul 13, 2023
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.
Code changes themselves look good, however there are a number of wrong copyrights with "Hiptic" on new files that need to be corrected.
Branch also contained rebuilt frameworks which made it harder to read what changed.
emawby
force-pushed
the
user_model/modularize_location
branch
from
July 13, 2023 20:24
9947b17
to
62af317
Compare
We are removing the launch push notification urls in a webview feature. This feature was not consistently effective, and added a webkit dependency to notifications that has gotten apps rejected from the app store. If we later want to add this feature back we should consider it as an optional module.
…_in_app [User model] Remove launch urls in app
jkasten2
approved these changes
Jul 14, 2023
This was referenced Jul 20, 2023
Merged
nan-li
pushed a commit
that referenced
this pull request
Oct 30, 2023
User model modularize Location and InAppMessages
nan-li
pushed a commit
that referenced
this pull request
Oct 30, 2023
User model modularize Location and InAppMessages
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Move location and InAppMessages to their own framework
Details
Distribution
Motivation
Modularize IAMs and Location so that customers can exclude them from their apps. This will help with app store rejections due to these features.
Scope
onFocus
and InAppMessagesappDidBecomeActive
OSSessionManager
fromOneSignal
OPTIONAL - Other
OPTIONAL - Feel free to add any other sections or sub-sections that can explain your PR better.
Testing
Unit testing
OPTIONAL - Explain unit tests added, if not clear in the code.
Manual testing
RECOMMEND - OPTIONAL - Explain what scenarios were tested and the environment.
Example: Tested opening a notification while the app was foregrounded, app build with Android Studio 2020.3 with a fresh install of the OneSignal example app on a Pixel 6 with Android 12.
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is