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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:45:44+00:00 2026-05-27T23:45:44+00:00

I wrote an iPad app which recieves remote push notifications through apns. The app

  • 0

I wrote an iPad app which recieves remote push notifications through apns.
The app revieves notifications and handles them correctly.

In AppDelegate.m i call:

registerForRemoteNotificationTypes:

and also i have the:

application: didRegisterForRemoteNotificationsWithDeviceToken:

set and all works like a charm.

Within the delegate i construct a url pointing to a registration script on the server. The Delegate is called, and this leads to a url being called registering the device etc. in my server application for sending push notification to.

BUT !! If the user starts the App for the first time, he has no credentials set so far. The App registers for recieving remote notifications, but i have not “key” telling me which user belongs to which device on my server.

I thought about calling the registration-URL later (after setting the credentials in App), but then i need the DeviceToken available, which i don’t have outside the delegate

didRegisterForRemoteNotificationsWithDeviceToken:

How could i solve this? I have to send the deviceToken AND the username to my server to be able to send the notifications to the USER later …

Hopefully this wrecking description is understandable 🙂

Any Help is appreciated…

  • 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-27T23:45:45+00:00Added an answer on May 27, 2026 at 11:45 pm

    You want your DeviceToken to be accessible outside of your app delegate it sounds like. This should help with your issue:How to use the device token in method other than didRegisterForRemoteNotificationsWithDeviceToken?

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

Sidebar

Related Questions

In my iPad app, I have a UIAlertView which pops up upon start up,
In my app for iPad I have to use a Text View. I wrote
In my Ipad app, I have a split view in which the detail view
I recently wrote an iPad app that I would like to make a universal
I want to do testing on an app which is provided free through iTunes.
I would like to write an app for the iPad but I can't stand
I made iPad application in which, I want to insert record into database table,
We have a POS apartment leasing iPad app that is used to collect a
I wrote a code that utilizes the MFMAilComposibleViewController to harness in-app emails. I specified
Hi I have wrote an application which is suitable for iphone (haven't uploaded to

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.