Skip to main content

Posts

Showing posts with the label push-notification

Add iPhone push notification using ASP.NET server

Here's the overview. I need to add push notification to an iPhone app. Server side is ASP.NET in c#. What I would like is some coaching to work through the process. I will then post generic code for an iPhone project and an ASP.NET web app along with step-by-step instructions so that others can learn. Here is my understanding: Apply for APNS certificate and add it to keychain. (Not sure how to bring this to ASP.NET) Have iPhones register with registerForRemoteNotificationWithTypes, send the value to your server, and store in a DB. Seems like this code to register should be easy but I can't find a good sample. (No problem with sending the value to the ASP.NET server.) Your server app creates a payload string, does JSON encoding, sends to the APNS server for each (or can it be for groups) of iPhones using their device token that was saved into the DB. So to develop the addition, here are the pieces: The iPhone registration code

Reset push notification settings for app

I am developing an app with push notifications. To check all possible ways of user interaction, I'd like to test my app when a user declines to have push notifications enabled for my app during the first start. The dialog (initiated by registerForRemoteNotificationTypes ), however, appears only once per app. How do I reset the iPhone OS's memory of my app. Deleting the app and reinstalling doesn't help.

Play local notification default sound when displaying UIAlertView?

I'm writing a reminders app for iPhone that displays reminders using local notifications. If a reminder goes off while the application is running, the local notification isn't displayed. Instead, the didReceiveLocalNotification method is called in my app delegate, and I mimic the local notification dialog by displaying a UIAlertView with the reminder text. When local notifications are displayed outside of the app, the device vibrates and the sound specified by UILocalNotificationDefaultSoundName is played. Again, I'd like to mimic this in the app when displaying the UIAlertView . I can vibrate the device by calling AudioServicesPlaySystemSound(kSystemSoundID_Vibrate) , but I can't figure out how to play the local notification default sound. There's no equivalent SystemSoundID constant, and I'm not sure what the path would be. tl;dr I'd like to play the local notification default sound when displaying a UIAlertView. Any ideas?

If Push Notification is disabled and Push Messages are sent, when are they get recived?

In my Android App I have used UrbanAirship to receive Push Notification. My web application sends me the notifications, which works great. Now if my Push is disabled in my Android apps Push Preference, I am not getting any push messages - which works as expected. Now I made my Push Enable, Quick Question - when will my app receives those notification sent by my web app when my App was in disable mode. Thanks, Panache

How do you set up javapns (push notifications for iOS)?

I have had a look at the documentation / wiki for javapns. http://code.google.com/p/javapns/ Unfortunately, what should be obvious is anything but obvious to me. How do I set up a working push notification server? As in, there's a .jar file, but I would appreciate more info than that. Do I need to run this in Tomcat? Is there a working example?' Thanks.