Friday, March 25, 2016

App rejected because of “Missing Push Notification Entitlement”

Problem :
Recently my application got rejected while uploading it. The Apple review team says my app is "Missing Push Notification Entitlements"
This is the information they have provided: 
Missing Push Notification Entitlement - Your app registers with the Apple Push Notification Service, but the application signature's entitlements do not include the required "aps-environment" entitlement. Make sure you have enabled Push Notification Services for this app, and that you have downloaded a Distribution provisioning profile that includes the "aps-environment" entitlement.

Solutions :
If you are submitting a Cordova / Phonegap project and you are NOT using push notifications, you should inspect Classes/AppDelegate.m for the two methods below. Observed in Cordova 3.7.0, not sure about other versions.
Make sure you are not using remote notifications in any other way (carefully check your plugins as well). Then remove or comment out the following block:

- (void) application:(UIApplication*)application
    // re-post ( broadcast )
    NSString* token = [[[[deviceToken description]
        stringByReplacingOccurrencesOfString:@"<" withString:@""]
        stringByReplacingOccurrencesOfString:@">" withString:@""]
        stringByReplacingOccurrencesOfString:@" " withString:@""];

    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotification object:token];

- (void) application:(UIApplication*)application
    // re-post ( broadcast )
    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotificationError object:error];
Hope this saves you a few hours ;-)

Reference :




MyBlogList I

MyBlogList II

MyBlogList III

  • Salam - Macam dah ada banyak masa nak beramah-mesra dengan makhluk bumi macam dahulu kala. Assalamualaikum semua!
    1 year ago
  • Rahsia Burung Helang - Korang perasan tak, setiap kali kita tengok gambar burung helang ini, mesti gambar dia diambil dari posisi tepi. Bukan dari posisi depan. Perasan tak? Haa....
    2 years ago
  • Salam 2016 - Salam Jumaat untuk semua. Jumaat pertama pada hari pertama untuk tahun 2016 Semoga kita semua terus positif, ceria dan sihat selalu ye
    2 years ago
  • Senai–Desaru Bridge - The tolled expressway is a combination of a four-lane dual carriageway (Senai-Cahaya Baru section) and a two-lane single carriageway (Cahaya Baru-Penawa...
    5 years ago




  • CPL/ND8 ---> DONE
  • Tokina 11-16mm ---> DONE
  • LEP4 ---> DONE!
  • Bali
  • D700
  • Nikkor 70-200f2.8
  • C200

About This Blog


  © Blogger template 'Photoblog' by 2008

Back to TOP