Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4498] Hyperloop doesn't detect the new UserNotifications framework

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2016-09-23T22:35:38.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsHyperloop
Labelshyperloop, ios10, notifications
ReporterRodolfo Perottoni
AssigneeShak Hossain
Created2016-09-23T01:06:16.000+0000
Updated2016-09-24T13:06:25.000+0000

Description

Apple has released a new notification SDK in iOS 10 called UserNotifications. This framework apparently is not being detected by Hyperloop. If you require it in your code...
var UIUserNotificationSettings = require('UserNotifications/UIUserNotificationSettings');
You get this error:
Error: The iOS class "UIUserNotificationSettings" could not be found in the framework "UserNotifications".
Even referencing it in your *appc.js* doesn't seem to solve the issue:
module.exports = {
    hyperloop: {
        ios: {
            xcodebuild: {
                frameworks: [
                    'UserNotifications'
                ]
            },
        }
    }
};

Comments

  1. Hans Knöchel 2016-09-23

    This issue is invalid. The class UIUserNotificationSettings is no iOS 10 class and is part of the UIKit framework, not UserNotifcations. You might look for UNNotificationSettings from the UserNotifications framework instead.
  2. Rodolfo Perottoni 2016-09-24

    Oh geez. Such a good friday mistake... Will try that.

JSON Source