-
Notifications
You must be signed in to change notification settings - Fork 33
Adding In-App support for fully compose apps #977
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
base: master
Are you sure you want to change the base?
Conversation
iterableapi/src/main/java/com/iterable/iterableapi/InAppWebViewService.kt
Show resolved
Hide resolved
iterableapi/src/main/java/com/iterable/iterableapi/IterableInAppDialogNotification.kt
Dismissed
Show dismissed
Hide dismissed
| val loc = location ?: IterableInAppLocation.IN_APP | ||
|
|
||
| if (iterableApi != null) { | ||
| iterableApi.trackInAppOpen(messageId, loc) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
IterableApi.trackInAppOpen
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.
@Ayyanchira What can be the replacement for that, since the same one is used in IterableInAppFragmentHTMLNotification:288
| val loc = location ?: IterableInAppLocation.IN_APP | ||
|
|
||
| if (iterableApi != null) { | ||
| iterableApi.trackInAppClick(messageId, url, loc) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
IterableApi.trackInAppClick
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.
@Ayyanchira What can be the replacement for that, since the same one is used in IterableInAppFragmentHTMLNotification:354
| val loc = location ?: IterableInAppLocation.IN_APP | ||
|
|
||
| if (iterableApi != null) { | ||
| iterableApi.trackInAppClose(messageId, url, closeAction, loc) |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
IterableApi.trackInAppClose
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.
@Ayyanchira What can be the replacement for that, since the same one is used in IterableInAppFragmentHTMLNotification:370
🔹 Jira Ticket(s) if any
✏️ Description
Adding support for fully compose apps to have in-app messages without problems.
On IterableInAppDisplayer, we now detect if the activity is a ComponentActivity or FragmentActivity.
We now have an IterableInAppDialogNotification.kt for handling In-Apps for fully compose apps.
There is also InAppServices for handling the InApp actions, layout, etc., currently only implemented on the DialogNotification but created for sharing logic between the fragment and compose implementations