Discussion Forums  >  Grunts, Groans, Complaints

Replies: 9    Views: 127

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
01/24/13 04:06 PM (11 years ago)

Device not prompting for Push Notifications

Hi All, Why when I downloaded the new source code, filled out everything for apple push notifications will it not prompt the user? Thanks, Jake
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
01/24/13 04:29 PM (11 years ago)
Hey @Jake Chasan, Don't you have to compile everything in your App and be in the App store after the push was rolled out two days ago? LA
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/24/13 04:37 PM (11 years ago)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/25/13 12:49 AM (11 years ago)
@LA: The Push thing has nothing to do with the App Store. In other words, you can configure you device to accept push notifications before it's in the app store. That's the purpose of the Development Certificate. @Jake: Not prompting. OK, there are only a few things that can cause this.... 1) You're testing on a simulator. iOS Simulators do not support push nor will they prompt to allow. 2) Your app's delegete does not contain the latest code and does not know what push is. Look for didRegisterForRemoteNotificationsWithDeviceToken in the delegate's .m file. If it's there, you have the latest code. 3) The JSON data for your app does not have "promptForPushNotifications":"1" 4) You previously installed the app on the device and said no, or it didn't ask or something else happened that wasn't planned. iOS is finicky and it won't ask you over and over again to accept push. If your app supports push, even if the user said "no" it should appear in the list of Notifications in the built in iOS Settings Menu. See that, if the app exists in that list those settings will prevail.
 
thegibcoyote
Apple Fan
Profile
Posts: 139
Reg: Feb 01, 2011
Gibraltar
1,390
like
02/06/13 10:48 AM (11 years ago)
David I have the same issue have xcoded the app and loaded into device with all the above checked. By default it should ask, but alas I do not see the app appearing in notifications section of the phone nor do I get the notification on first run. Very strange as I have all certs in place etc. Maybe someone else has had similar probs and would like to comment ? Thanks
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
02/16/13 01:06 PM (11 years ago)
Hey, I'm also having the same problems. I confirmed all the steps David suggested. All are right. In one App in the Notification settings in the device's settings menu, it's set to accept notifications. In my control panel I have the one device registered as well. Any suggestions? Miguel
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/16/13 01:07 PM (11 years ago)
@MadRod: Self Hosted?
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
02/16/13 01:49 PM (11 years ago)
Ya, self hosted. Thanks.
 
Black Light
Code is Art
Profile
Posts: 15
Reg: Sep 10, 2012
Fairfax
4,300
like
03/13/13 05:42 AM (11 years ago)
Same issue here, i went through David's checklist, all things are OK, also i checked the Notification Centre in my IOS and my app is not there. hope someone can help us on this.
 
Black Light
Code is Art
Profile
Posts: 15
Reg: Sep 10, 2012
Fairfax
4,300
like
03/18/13 09:34 AM (11 years ago)
I have solved the issue, but I don't know what was the exact mistake. now the device promotes for notifications. Also it can be found in push notifications control panel. What I have done is re-install the app again into XCode, and revoke all my provisioning certificates and creates new ones. Hope this can helps. BR
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.