Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black dot appears when no iconType or iconTemplate is passed #28

Open
ayyfish opened this issue Mar 3, 2017 · 6 comments
Open

Black dot appears when no iconType or iconTemplate is passed #28

ayyfish opened this issue Mar 3, 2017 · 6 comments

Comments

@ayyfish
Copy link

ayyfish commented Mar 3, 2017

I am creating quick actions with only a title, subtitle, and type. For some reason when I open up the quick actions menu from the home screen, a black dot appears where the icon normally would next to each action. I'm not sure if this is due to something I'm doing wrong or if anybody else can replicate this issue.

@EddyVerbruggen
Copy link
Owner

Can you show me how you specify those actions?

@ayyfish
Copy link
Author

ayyfish commented Mar 3, 2017

configureQuickActions()
{
  let quickActions: ThreeDeeTouchQuickAction[] = [];
  for (let i = 0; i < this.settings.quickActions.length; i++)
    quickActions.push(
      {
        type: JSON.stringify(this.settings.quickActions[i]),
        title: this.settings.quickActions[i].game.display,
        subtitle: `${this.settings.quickActions[i].sort.display} ${this.settings.quickActions[i].time.display}`
      }
    );
  ThreeDeeTouch.configureQuickActions(quickActions);
}

It is in typescript and using the Ionic 2 native wrapper, but I don't think that is the issue. I have gone directly into ThreeDeeTouch.m and set icon to nil like below

[items addObject:[[UIApplicationShortcutItem alloc]initWithType: type localizedTitle: title localizedSubtitle: subtitle icon: nil userInfo: nil]];

and the issue still occurs. When I set localizedSubtitle to nil though, it works as expected and the subtitle goes away. Thanks for your help :)

@EddyVerbruggen
Copy link
Owner

So when you set localizedSubtitle to nil the dot is gone, and the subtitle as well?

@ayyfish
Copy link
Author

ayyfish commented Mar 3, 2017

No, just the subtitle. The dot still appears. I also tried

initWithType:localizedTitle:

instead of

initWithType:localizedTitle:localizedSubtitle:icon:userInfo:

and the dot still appeared.

@EddyVerbruggen
Copy link
Owner

Almost sounds like an iOS bug. No clue without investing some time I don't have :(

@ayyfish
Copy link
Author

ayyfish commented Mar 3, 2017

Thats what I think as well. I've tried looking up the issue online and I can't find anyone else having the issue unfortunately :/ Thanks for the help though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants