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

  • SEARCH
  • Home
  • 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 8262873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:54:09+00:00 2026-06-08T03:54:09+00:00

I am making an iOS app which receives push notifications. Everything is set up

  • 0

I am making an iOS app which receives push notifications. Everything is set up correctly, and I have made it work already. The way I tested it was to manually enter the device token of my own phone in the .php file which sent the notification. I know I need to set up an SQL-database which stores all the device-tokens. I also know I have to “call” this website in the dedRegisterForRemoteNotificationWithDeviceToken in Xcode. I know how to do all this, but I am not sure how I should create the field for the actual token in the database, and how to parse it correctly.

If I remember right, when I NSLog out my device token, I get something like “< xxxx xxxx xxxx xxxx >”. I think I have to parse this to be “xxxxxxxxxxxxxxxx”.

I’m sure I’ll figure this out.. My main question is, what TYPE should the column for token be? INT? VARCHAR? I can tell that it’s a hex of some kind, but I don’t know how to go about that in the database..

I’m thinking of setting up the table just with (TokenID int AUTO_INCREMENT, Token (??) UNIQUE);

I do not need users or anything.. Just the token(the TokenID is just my standard procedure..). This is a kind of “news”-notification specified for one field. Anyone knows what type my token-value should be? And maybe also how to parse it from “< x-x-x >” to “xxx”

  • 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-06-08T03:54:12+00:00Added an answer on June 8, 2026 at 3:54 am

    I found an example here: http://www.easyapns.com/mysql-tables

     `devicetoken` char(64) NOT NULL,
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making my first app which will use push notifications. I have decided
I'm making an iOS app which is OpenFeint enabled. I have managed to get
I am making a drawing app for iOS and I have the following classes:
I'm making something like an augmented reality app, in which I have an OpenGL
I am recently making an app which needs to exchange messages between different iOS
I am new to developing iOS apps. I am currently making an app which
I am making an web application for an iOS app I made. I want
I'm making an iOS app in which, if memory were not an issue, there
I'm making an iOS app that needs to load some youtube videos. I was
I'm making an iOS app using AIR 3.1 and Flex 4.5.1, and if I

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.