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 7824419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:35:27+00:00 2026-06-02T08:35:27+00:00

I’m looking at the designing and developing a service for Push notifications, and am

  • 0

I’m looking at the designing and developing a service for Push notifications, and am trying to understand the order of processing in the Apple App when it comes to Registering for Push Notifications and storage of the Token.
What I’m developing currently is a service that allows subscription to individual changes that happen to particular processing on our server.
When they happen, the phone user may receive a message of type “A”, “B”, or “C”.
The phone user has to “subscribe” to each of these types individually if they want them. Otherwise they can ignore it and not subscribe.

So User Fred, on Phone #4, starts our App, logs in, and then has the ability to turn on or off subscriptions to events that are sent as Push Notifications.

So I need to tie details from Fred’s login, to Phone #4’s device Token, with particular subscriptions.

So my particularly important questions are.

When the Phone connects to the APNS server to get its device token, is this automatic on app start? Or can this be initiated at a later step? Ie, after going through a loging screen on our app.

Can we (are we allowed to) store the device token on the phone in the App’s data store?. Or, should the App be connecting to the APNS server every time the app is run?

How does the App know if it as already called the APNS server and retrieved a token, or as above, should it call the APNS server time the app is run?

Can we (are we allowed to) store the token in the App’s memory as it runs, so we can properly subscribe and unsubscribe for particular messages?

We need also to be able to list all the subscriptions that a particular user may have across all their devices so the user can remove old devices (if they change phones). Or can we rely upon data back from calls to the APNS – when we attempt to push a notification – to inform us that a device token is no longer valid?

Or is there some better way of tying this all together?

  • 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-02T08:35:31+00:00Added an answer on June 2, 2026 at 8:35 am

    When the Phone connects to the APNS server to get its device token, is
    this automatic on app start? Or can this be initiated at a later step?
    Ie, after logging into our app.

    After the app has started, the app gets the token by calling registerForRemoteNotificationTypes. This will prompt the user for permission, and call a callback with the device token if permission is granted.

    Can we (are we allowed to) store the device token on the phone in the
    Apps data store?. Or, should the App be connecting to the APNS server
    every time the app is run?

    You’ll need to build an APN provider, which is a web server that calls apple to send the pushes. The thing to do with the token is post it to your server that uses the APN provider. The app doesn’t connect to APNS, your provider does, and it does it when it has pushes to send.

    Can we (are we allowed to) store the token in the App’s memory as it
    runs, so we can properly subscribe and unsubscribe for particular
    messages?

    You can keep the token on the client, but you don’t really need to. It’s your web service that calls APN, so it needs to be kept aware of your users’ subscription prefs.

    We need also to be able to list all the subscriptions that a
    particular user may have across all their devices so the user can
    remove old devices (if they change phones). Or can we rely upon data
    back from calls to the APNS – when we attempt to push a notification –
    to inform us that a device token is no longer valid?

    APN also provides a feedback service that you call in batch which returns the device tokens that are no longer valid. Not only can you use this service, but you must. Apple will get mad at apps that repeatedly send to no longer valid devices.

    Or is there some better way of tying this all together?

    Yes! Parse.com provides a nice wrapper on the client code, does the provider and feedback service, abstracts the idea of single devices to the idea of a “channel” which sounds like just what you need for multiple notification types A, B, C, provides a super-easy step by step setup, and loads of other useful cloud services for iOS. (I’m not affiliated, but a big fan).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am looking for a guide, or simple to understand method of designing a website.
For a web app I am designing, looking for a graphics library (java script
I'm looking at designing a low-level radio communications protocol, and am trying to decide
Looking for some reference material where i can get some OO designing problems and
I'm looking for a bit of guidance on designing an efficient turn based system
I am looking for a solution for the following problem: I am designing a
Hello and thanks for looking! Background I am designing a greenfield application using .NET4
I am designing a python web app, where people can have an email sent
I am designing & developing Reset Password form, where user provides username/email address so
I've been looking into designing some Domain Specific Languages which I will probably implement

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.