Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1529] remoteNotificationsEnabled is sometimes incorrect on iOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2014-04-09T00:38:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
Reporterbilly
AssigneeShuo Liang
Created2014-04-02T20:08:13.000+0000
Updated2016-03-08T07:37:59.000+0000

Description

This may be hard to reproduce, but I created an adhoc build and installed on my friend's iphone 5. Ti.Network.remoteNotificationsEnabled incorrectly said it was disabled for his device (I checked his notification center and my app was not listed anywhere). After I removed this check from my code, it correctly prompted him for push notifications.

Comments

  1. Ritu Agrawal 2014-04-07

    Can you please provide a simple runnable test case to reproduce this issue?
  2. Shuo Liang 2014-04-08

    I have tested on my iphone device with Ti.Network.remoteNotificationsEnabled, it works properly. Please check your code logic. Ti.Network.remoteNotificationsEnabled indicates whether push notifications have been enabled using registerForPushNotifications. so it will be set to true or 1 after you success to register for PushNotification. If you still have this problem, please provide a simple runnable test case to reproduce this issue.
  3. billy 2014-04-08

    I see the confusion. It's wasn't clear that remoteNotificationsEnabled indicates whether or not the user has given permissions to notifications. I was looking for a method that says whether or not the device supports remote notifications. This could be a bit clearer in the doc. Sorry for the mixup.
  4. Shuo Liang 2014-04-09

    Not our bug.
  5. Shuo Liang 2014-04-09

    Not our bug

JSON Source