@@ -43,22 +43,20 @@ public interface Listener {
43
43
private final IterableInAppStorage storage ;
44
44
private final IterableInAppHandler handler ;
45
45
private final IterableInAppDisplayer displayer ;
46
- private final String [] allowedProtocols ;
47
46
private final IterableActivityMonitor activityMonitor ;
48
47
private final double inAppDisplayInterval ;
49
48
private final List <Listener > listeners = new ArrayList <>();
50
49
private long lastSyncTime = 0 ;
51
50
private long lastInAppShown = 0 ;
52
51
private boolean autoDisplayPaused = false ;
53
52
54
- IterableInAppManager (IterableApi iterableApi , IterableInAppHandler handler , double inAppDisplayInterval , String [] allowedProtocols ) {
53
+ IterableInAppManager (IterableApi iterableApi , IterableInAppHandler handler , double inAppDisplayInterval ) {
55
54
this (iterableApi ,
56
55
handler ,
57
56
inAppDisplayInterval ,
58
57
new IterableInAppFileStorage (iterableApi .getMainActivityContext ()),
59
58
IterableActivityMonitor .getInstance (),
60
- new IterableInAppDisplayer (IterableActivityMonitor .getInstance ()),
61
- allowedProtocols );
59
+ new IterableInAppDisplayer (IterableActivityMonitor .getInstance ()));
62
60
}
63
61
64
62
@ VisibleForTesting
@@ -67,8 +65,7 @@ public interface Listener {
67
65
double inAppDisplayInterval ,
68
66
IterableInAppStorage storage ,
69
67
IterableActivityMonitor activityMonitor ,
70
- IterableInAppDisplayer displayer ,
71
- String [] allowedProtocols ) {
68
+ IterableInAppDisplayer displayer ) {
72
69
this .api = iterableApi ;
73
70
this .context = iterableApi .getMainActivityContext ();
74
71
this .handler = handler ;
@@ -77,7 +74,6 @@ public interface Listener {
77
74
this .displayer = displayer ;
78
75
this .activityMonitor = activityMonitor ;
79
76
this .activityMonitor .addCallback (this );
80
- this .allowedProtocols = allowedProtocols ;
81
77
82
78
syncInApp ();
83
79
}
@@ -275,17 +271,17 @@ public void handleInAppClick(@NonNull IterableInAppMessage message, @Nullable Ur
275
271
if (urlString .startsWith (IterableConstants .URL_SCHEME_ACTION )) {
276
272
// This is an action:// URL, pass that to the custom action handler
277
273
String actionName = urlString .replace (IterableConstants .URL_SCHEME_ACTION , "" );
278
- IterableActionRunner .executeAction (context , IterableAction .actionCustomAction (actionName ), IterableActionSource .IN_APP , allowedProtocols );
274
+ IterableActionRunner .executeAction (context , IterableAction .actionCustomAction (actionName ), IterableActionSource .IN_APP );
279
275
} else if (urlString .startsWith (IterableConstants .URL_SCHEME_ITBL )) {
280
276
// Handle itbl:// URLs, pass that to the custom action handler for compatibility
281
277
String actionName = urlString .replace (IterableConstants .URL_SCHEME_ITBL , "" );
282
- IterableActionRunner .executeAction (context , IterableAction .actionCustomAction (actionName ), IterableActionSource .IN_APP , allowedProtocols );
278
+ IterableActionRunner .executeAction (context , IterableAction .actionCustomAction (actionName ), IterableActionSource .IN_APP );
283
279
} else if (urlString .startsWith (IterableConstants .URL_SCHEME_ITERABLE )) {
284
280
// Handle iterable:// URLs - reserved for actions defined by the SDK only
285
281
String actionName = urlString .replace (IterableConstants .URL_SCHEME_ITERABLE , "" );
286
282
handleIterableCustomAction (actionName , message );
287
283
} else {
288
- IterableActionRunner .executeAction (context , IterableAction .actionOpenUrl (urlString ), IterableActionSource .IN_APP , allowedProtocols );
284
+ IterableActionRunner .executeAction (context , IterableAction .actionOpenUrl (urlString ), IterableActionSource .IN_APP );
289
285
}
290
286
}
291
287
}
0 commit comments