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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:05:06+00:00 2026-05-22T15:05:06+00:00

The very first time you start a push app, the user gets asked if

  • 0

The very first time you start a push app, the user gets asked if he wants to allow push notifications.

the problem here is, that didRegisterForRemoteNotificationsWithDeviceToken gets called before the user made a decision, so the enabledRemoteNotificationTypes are all disabled before the user clicks a button.

i register the device on my server for push messages in this didRegisterForRemoteNotificationsWithDeviceToken method, so the very first time i get a user that disabled all notifications, although the user probably clicked “allow” a few seconds later.

the next startup this information gets updated, but as long as a user doesn’t restart the app (which can take a long time in times of multitasking) i’m unable to send this person a push message.

does somebody have a tip for me? is there a better place to update my server with the user settings. is there probably a callback from the popup that appears the very frist time?

thanks for all hints!

  • 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-22T15:05:06+00:00Added an answer on May 22, 2026 at 3:05 pm

    You shouldn’t track the enabled notification types on your server. When a user disables a certain type of notification for your app, e.g. sounds, your notification can still contain a sound key, but the device won’t play it.

    The problem is that a user could (re-)enable any notification types for your app while it’s not running, so your server wouldn’t have a chance to notice the change and you wouldn’t deliver notifications, even though the user expects them.

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

Sidebar

Related Questions

How can I remove the very first 1 from any string if that string
First question on here so please be nice :) I know very little about
I am setting up a very small MySQL database that stores, first name, last
I tried Build and Analyze tool of Xcode very first time today. and found
I got very weird issue with managedObjectContext:save. It hasn't happened at the first time
This is my very first question so I am a bit nervous about it
I'm soon going to check in the very first commit of a new Java
First of all, let me say I am very new to rails, have been
I very rarely meet any other programmers! My thought when I first saw the
Very simply put: I have a class that consists mostly of static public members,

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.