Commit 94e1844
committed
Notifications Manager - push token and sub ID from cache
* The `OSNotificationsManager` needs push token and push subscription ID, when it may not be passed to it, if it already exists.
* Get these two values from the cache when they are accessed and they are nil.
* Previously, When the app starts up, the _pushToken would always be `nil` and return a negative number incorrectly.
* Also fix a bug where we send a nil pushToken to the user module, it will translate as "", and register as a change when it really isn't1 parent 239245e commit 94e1844
File tree
2 files changed
+21
-5
lines changed- iOS_SDK/OneSignalSDK
- OneSignalNotifications
- OneSignalUser/Source
2 files changed
+21
-5
lines changedLines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
181 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
182 | 189 | | |
183 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
| 200 | + | |
187 | 201 | | |
188 | 202 | | |
189 | 203 | | |
| |||
377 | 391 | | |
378 | 392 | | |
379 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
380 | 397 | | |
381 | 398 | | |
382 | 399 | | |
| |||
399 | 416 | | |
400 | 417 | | |
401 | 418 | | |
402 | | - | |
| 419 | + | |
| 420 | + | |
403 | 421 | | |
404 | 422 | | |
405 | 423 | | |
| |||
469 | 487 | | |
470 | 488 | | |
471 | 489 | | |
472 | | - | |
| 490 | + | |
| 491 | + | |
473 | 492 | | |
474 | 493 | | |
475 | 494 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
0 commit comments