Push Notification: unable to get device token

Discussion in 'iOS Programming' started by Narendar Singh, Jul 20, 2012.

  1. Narendar Singh macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #1
    After calling registerForRemoteNotification: funtion from Application Delegate I am getting following error in didFailToRegisterRemoteNotificationWithError:

    no valid 'aps-environment' entitlement string found for application

    What's wrong?
     
  2. Narendar Singh thread starter macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #2
    After some search on Google, what I found - There were a problem in provisioning file, It MUST NOT be wildcard provisioning.

    Then, I have created a provisioning file ie MyApp_Push_Adhoc. Then I set this in Code Signing Entity (Debug).

    When I run my app in Debug mode app get crashed.

    My other question is - Is that possible to run app in debug mode by using developer provisioning file.

    FYI: I do not have much understanding on Provisioning file.
     

Share This Page