-
Notifications
You must be signed in to change notification settings - Fork 39
[MOB-10947][SDK-88] Configure JWT for Android #727
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
Changes from all commits
8975ac1
ab8efaa
1972fbb
2cd8253
fd74351
ef86b15
372df66
a7804e5
21ca59d
18cba09
050ad22
60bc88e
5fbb9c9
5e4e579
3737d57
7b8fdb1
67a806d
b31ffd7
ed20041
0191b7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,16 +95,30 @@ export const IterableInboxMessageList = ({ | |
function getRowInfosFromViewTokens( | ||
viewTokens: Array<ViewToken> | ||
): Array<IterableInboxImpressionRowInfo> { | ||
return viewTokens.map(function (viewToken) { | ||
const inAppMessage = IterableInAppMessage.fromViewToken(viewToken); | ||
return viewTokens | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's given by the At times, |
||
.filter((viewToken) => { | ||
// Filter out viewTokens that don't have valid items or inAppMessage | ||
return viewToken?.item?.inAppMessage?.messageId; | ||
}) | ||
.map(function (viewToken) { | ||
try { | ||
const inAppMessage = IterableInAppMessage.fromViewToken(viewToken); | ||
|
||
const impression = { | ||
messageId: inAppMessage.messageId, | ||
silentInbox: inAppMessage.isSilentInbox(), | ||
} as IterableInboxImpressionRowInfo; | ||
const impression = { | ||
messageId: inAppMessage?.messageId, | ||
silentInbox: inAppMessage?.isSilentInbox(), | ||
} as IterableInboxImpressionRowInfo; | ||
|
||
return impression; | ||
}); | ||
return impression; | ||
} catch (error) { | ||
// Log the error and return null to be filtered out | ||
console.warn('Failed to create impression from ViewToken:', error); | ||
return null; | ||
} | ||
}) | ||
.filter( | ||
(impression) => impression !== null | ||
) as Array<IterableInboxImpressionRowInfo>; | ||
} | ||
|
||
const inboxSessionViewabilityConfig: ViewabilityConfig = { | ||
|
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.
Good to see RetryPolicy coming all the way from TS and getting applied at core level!
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.
That was all you from the previous work we did 🥇