Skip to content

Commit

Permalink
fix: use „itemtype“ only
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Jan 18, 2019
1 parent e524216 commit 7658e15
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion apidoc/Titanium/App/iOS/iOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ events:
- name: shortcutitemclick
summary: Fired when a user taps the Application Shortcut.
properties:
- name: identifier
- name: itemid
summary: The unique identifier for the application shortcut.
type: String

Expand Down
4 changes: 0 additions & 4 deletions iphone/Classes/TiAppiOSProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ - (void)didReceiveApplicationShortcutNotification:(NSNotification *)info
{
NSMutableDictionary *event = [[NSMutableDictionary alloc] initWithDictionary:@{
@"title" : [[info userInfo] valueForKey:@"title"],
#ifdef USE_TI_UIAPPLICATIONSHORTCUTS
@"identifier" : [[info userInfo] valueForKey:@"type"]
#else
@"itemtype" : [[info userInfo] valueForKey:@"type"]
#endif
}];

if ([[info userInfo] valueForKey:@"subtitle"] != nil) {
Expand Down

0 comments on commit 7658e15

Please sign in to comment.