Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3960480
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:51:33+00:00 2026-05-20T02:51:33+00:00

We added Push Notifications to our App but we need help with sending the

  • 0

We added Push Notifications to our App but we need help with sending the Device Token to our database. As of right now we have our database set up so all we have to do is get our Device Token from the NSLog and put it at the end of the database’s URL:http://www8.XXXXXXX.net/XXXXX_push/register.cfm?token=TOKEN_HERE
If we use Safari we can just type that in the URL bar with the real Token at the end then hit enter and the database receives Token.
We Fell that we need to put code in the App under:

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 

But we just don’t know what code to use…As we are really new to this.

Could someone please let us know what code to use to send the NSURL that we have made?

P.S. here is what we have so far:

- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { 

NSString *str = [NSString 
                 stringWithFormat:@"Device Token=%@",deviceToken];
NSLog(str);
NSString *fullURL = [NSString stringWithFormat:@"http://www8.xxxxxxxxx.net/xxxxx_push/register.cfm?token=%@",str];
NSURL *tokenURL = [NSURL URLWithString:fullURL];

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:51:33+00:00Added an answer on May 20, 2026 at 2:51 am

    didRegisterForRemoteNotificationsWithDeviceToken is the right spot for waht you are doing.

    I use this code, borrowed from urbanairship.com, to clean up the deviceToken before sending it back via a NSURLConnection PUT to the urbanairship servers.

       NSString *deviceToken = [[_deviceToken description] stringByReplacingOccurrencesOfString: @"<" withString: @""];
        deviceToken = [deviceToken stringByReplacingOccurrencesOfString: @">" withString: @""] ;
        deviceToken = [deviceToken stringByReplacingOccurrencesOfString: @" " withString: @""];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added some simple WatiN tests to our app today to check that a
i need to push data in javascript array into database using PHP first i
Kind of a strange question, but here is my scenario: I have accidentally added
ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen
I added the columns in the select list to the order by list, but
i need a rundown on how to fully utilise the push notification system. Iv
The javascript code is attached below. Two push pins are added to a Bing
i use github and have successfully added and synched files on my laptop in
I have a snippet to create a 'Like' button for our news site: <iframe
I have created a brand new heroku app, beforehand i deleted the old .git

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.