- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
NSLog(@"Initiating remoteNoticationssAreActive");
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound |UIRemoteNotificationTypeAlert)];
}
- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(@"devToken=%@",deviceToken);
}
- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err {
NSLog(@"Error in registration. Error: %@", err);
}
Friday, June 25, 2010
Wednesday, June 9, 2010
Twitter like notfication jquery notifier asp.net
So was looking at something like twitter uses for notficaiton of events (Tweet sent , something updated , something wrong etc. etc.) Came across jnotify. anyway here is the code ..
page.cs - Pretend we are using a web service to log the user in
protected void Button1_Click(object sender, EventArgs e)
{
com.webservice.user ulup = new com.webservice.user();
int username = ulup.Checkuser_mobile(mobile.Text);
if (username != 0) //If the login failed you could send back something other than 0 thats just what i am doing .
{
Panel2.Enabled = true; //This panel is hidden in the .aspx onload
}
page.cs - Pretend we are using a web service to log the user in
protected void Button1_Click(object sender, EventArgs e)
{
com.webservice.user ulup = new com.webservice.user();
int username = ulup.Checkuser_mobile(mobile.Text);
if (username != 0) //If the login failed you could send back something other than 0 thats just what i am doing .
{
Panel2.Enabled = true; //This panel is hidden in the .aspx onload
}
Subscribe to:
Posts (Atom)