Help with Refreshing CollectionView (Push Notifications)

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 ?

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

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

This topic was automatically closed after 166 days. New replies are no longer allowed.