[AC-4498] Hyperloop doesn't detect the new UserNotifications framework
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2016-09-23T22:35:38.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | hyperloop, ios10, notifications |
Reporter | Rodolfo Perottoni |
Assignee | Shak Hossain |
Created | 2016-09-23T01:06:16.000+0000 |
Updated | 2016-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'
]
},
}
}
};
This issue is invalid. The class
UIUserNotificationSettings
is no iOS 10 class and is part of theUIKit
framework, notUserNotifcations
. You might look forUNNotificationSettings
from theUserNotifications
framework instead.Oh geez. Such a good friday mistake... Will try that.