We have build a PhoneGapBuild app with another product but we have a problem. Apple iTunes rejected our app because we can't test if the user click 'Don't Allow' notifications. Do you have a function in Javascript for PhoneGapBuild to receive this information inside the app?

Thanks Best regards Serge

asked 26 Aug '14, 14:28
scharbit's gravatar image


You can do it yourself with the help of this code:

UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

if  (types & UIRemoteNotificationTypeAlert)  {
    NSLog(@"Notification Enabled");
else {
    NSLog(@"Notification not enabled");
permanent link
answered 02 Sep '14, 10:33
Fectum's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 26 Aug '14, 14:28

question was seen: 1,088 times

last updated: 02 Sep '14, 10:33