Cloud messaging handing terminate app

I have an application that stores the user's session in NSUserDefaults. When the application is forced to close, in the initial verify whether the data controller user session there, in case if there sent it to the start window as follows:

This worked smoothly me until today when I decided to implement push notifications with updating firebase following this tutorial
Setting up a Firebase Cloud Messaging Client App on iOS . The problem occurs when he killed the application and enter again gives the following error code: