File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
android/src/main/java/com/iterable/reactnative Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
package com .iterable .reactnative ;
2
2
3
+ import android .content .Context ;
4
+ import android .content .Intent ;
5
+ import android .content .pm .PackageManager ;
3
6
import android .net .Uri ;
4
7
import android .os .Bundle ;
5
8
Original file line number Diff line number Diff line change @@ -455,7 +455,14 @@ class Iterable {
455
455
const url = dict [ "url" ]
456
456
const context = IterableActionContext . fromDict ( dict [ "context" ] )
457
457
Iterable . wakeApp ( )
458
- callUrlHandler ( url , context )
458
+ if ( Platform . OS === "android" ) {
459
+ //Give enough time for Activity to wake up.
460
+ setTimeout ( ( ) => {
461
+ callUrlHandler ( url , context )
462
+ } , 1000 )
463
+ } else {
464
+ callUrlHandler ( url , context )
465
+ }
459
466
}
460
467
)
461
468
}
You can’t perform that action at this time.
0 commit comments