Closed Bug 1198943 Opened 11 years ago Closed 11 years ago

Ensure that we're requesting remote notification permissions, and keeping tokens

Categories

(Firefox for iOS :: General, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fxios 1.1+ ---

People

(Reporter: rnewman, Unassigned)

Details

Stefan, filing a bug to track this. Flesh this out?
Assignee: nobody → etoop
Status: NEW → ASSIGNED
so, we need to add implementations for the following functions in the AppDelegate (in Swift 1.2 parlance): func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError) func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) In one we need to handle the failure of a registration for remote notifications and in the other we need to do whatever it is we need to do with the provided token, saving it somewhere for now presumably (:@st3fan?) We also register for notifications only once, currently, when the user signs up for an account. As we are not currently saving that remote notification registration token we might need to ensure that we re-request that remote notification registration from existing users in order to grab that token. We should figure out a way of ensuring that happens only once.
Flags: needinfo?(sarentz)
That sounds good. I think we can delay all this work until we are also adding functionality to actually deal with remote notifications. It sounds like we can simply always ask for it and always get the token back. (Assuming iOS does not nag the user if they have previously said No) So I don't think there is any urgency of saving that token right now for 1.0 or 1.1.
Flags: needinfo?(sarentz)
Assignee: etoop → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(sarentz)
Closing this bug because there is no work required at this point.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(sarentz)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.