Issue Type: Feature Request Feature Request
Affects Versions: 1.2.0
Assignee: Unassigned
Components: example
Created: 17/Jul/13 2:07 PM
Description:

In AeroDoc we try to stash the token:
https://github.com/aerogear/aerogear-push-quickstart-ios/blob/master/ProDoctor/ProDoctor/AGAppDelegate.m#L49

However, when APNs registration fails, this callback is invoked:
https://github.com/aerogear/aerogear-push-quickstart-ios/blob/master/ProDoctor/ProDoctor/AGAppDelegate.m#L53

That means there is no stashed token.

Now after we got a successful login, against the AeroDoc backend, we should check if the token is nil or not, before we "blindly" perform a registration with the UnifiedPush Server:
https://github.com/aerogear/aerogear-push-quickstart-ios/blob/master/ProDoctor/ProDoctor/Classes/Controllers/AGLoginViewController.m#L138

=> A 'nil' check should be done before execution of that method

Fix Versions: 1.2.0
Project: AeroGear iOS
Priority: Major Major
Reporter: Matthias Wessendorf
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira