Commit 9b2674c
committed
Fix GetTags Sync Crash
• React-Native only allows a callback to be invoked once.
• When RN apps call getTags() multiple times very quickly, the Android SDK will crash because it only stores a reference to the most recent callback
• Fixed by maintaining a callback reference in RNOneSignal1 parent 5c62534 commit 9b2674c
File tree
1 file changed
+10
-1
lines changed- android/src/main/java/com/geektime/rnonesignalandroid
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
143 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
| |||
0 commit comments