crash during register device token

NSString *deviceRegistrationId = [backendless.messagingService registerDeviceToken:deviceToken];

I am using this code for register device token and geting crash reason : [__NSCFConstantString containsString:]:

How do you obtain device token? Are you following the documentation?

Please, investigate this sample project.