When I enable push in my app on iOS, the system displays an pop-up message asking the user to give push permissions
But this pop-up causes my app to not complete the app startup.. When I click Yes on the push permission pop up, it goes away.. but the app stays stuck on the splash screen..
Looks like there is going something wrong at the deactive state (which is probably caused by the pop-up message)
Anyone can confirm this and can help me work this out??
last rows of log file:
I 02/01/2014 13:35:22:689 3cd9b18c Rhodes| Application will resign active I 02/01/2014 13:35:22:689 3cd9b18c RhodesApp| callAppActiveCallback I 02/01/2014 13:35:22:690 3cd9b18c AppCallbacks| addCommand: APP-DEACTIVATED E 02/01/2014 13:35:22:691 3cd9b18c Net| Operation finished with error 7: Couldn't connect to server E 02/01/2014 13:35:22:692 3cd9b18c Net| CURLNetRequest: METHOD = [GET] URL = [http://127.0.0.1:49371/system/deactivateapp] BODY =  E 02/01/2014 13:35:22:693 3cd9b18c RhodesApp| deactivate app failed. Code: -1; Error body: I 02/01/2014 13:35:22:693 3cd9b18c RhodesApp| New start params: I 02/01/2014 13:35:22:694 0356b000 AppCallbacks| process command: APP-DEACTIVATED I 02/01/2014 13:35:22:694 0356b000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds... I 02/01/2014 13:35:22:699 036f1000 GeoLocation| Creating singleton instance. I 02/01/2014 13:35:22:699 036f1000 RhodesApp| RhoRubyInitApp... I 02/01/2014 13:35:22:700 036f1000 APP| init_app I 02/01/2014 13:35:22:701 036f1000 RhoRuby| require_compiled: application I 02/01/2014 13:35:22:713 036f1000 RhoRuby| require_compiled: helpers/application_helper I 02/01/2014 13:35:22:733 036f1000 Network| NetworkC hasNetwork+ I 02/01/2014 13:35:22:733 036f1000 HttpServer| Start HTTP server I 02/01/2014 13:35:22:734 036f1000 HttpServer| Listen for connections on port 49371 I 02/01/2014 13:35:22:734 036f1000 AppCallbacks| addCommand: LOCAL-SERVER-STARTED I 02/01/2014 13:35:22:734 0356b000 AppCallbacks| Local server restarted before activate.Do not restart it again. I 02/01/2014 13:35:22:734 0356b000 AppCallbacks| process command: LOCAL-SERVER-STARTED I 02/01/2014 13:35:22:734 0356b000 RhodesApp| rho_sys_report_app_started has no implementation on iPhone. I 02/01/2014 13:35:22:734 0356b000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
2014-02-01 13:35:45.897 rhorunner[379:60b] Device token is <xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxx>
I 02/01/2014 13:35:45:898 3cd9b18c PushNotificationsReceiver.mm: 37| device pin: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I 02/01/2014 13:35:46:399 3cd9b18c Rhodes| Application did become active I 02/01/2014 13:35:46:400 3cd9b18c RhodesApp| callAppActiveCallback I 02/01/2014 13:35:46:400 3cd9b18c AppCallbacks| addCommand: APP-ACTIVATED I 02/01/2014 13:35:46:400 0356b000 AppCallbacks| Received command APP-ACTIVATED which is greater than expected (UI-CREATED) - postpone it I 02/01/2014 13:35:46:400 0356b000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
If the push is not enabled or when the permission for push is already given, the app starts just fine..