Group Group Group Group Group Group Group Group Group

Help with Refreshing CollectionView (Push Notifications)


#1

Trying to trigger an update of a collectionview through push notifications.

Therefore I am working in AppDelegate.swift - Everything fails with error message: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Even tried to reload the view, to no avail?

It works fine ordinarily, if I press the button assigned to the same function which loads the data, just nothing works within AppDelegate, is this intended behaviour ? If so, how are you supposed to dynamically update using push notifications?

Can anyone help, please ?


#2

I have fixed this. For anybody else with the same problem use the Notification Center to execute the commands from App Delegate instead


#3

@dringer Glad you sorted it out! Cheers! :]