question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

localNotification together with badge

See original GitHub issue

I had the local-notification plugin installed and it was working fine

 cordova plugin add de.appplant.cordova.plugin.local-notification

then I tried to install badge because I was not able to clear the badge icon

 cordova plugin add de.appplant.cordova.plugin.badge

Now I’m getting this error when I try to build in xcode

duplicate symbol _UIApplicationRegisterUserNotificationSettings in:
.../Debug-iphonesimulator/On-the-Go.build/Objects-normal/x86_64/AppDelegate+APPBadge.o
.../Debug-iphonesimulator/On-the-Go.build/Objects normal/x86_64/AppDelegate+APPLocalNotification.o
ld: 1 duplicate symbol for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
t1tlehtocommented, Aug 6, 2015

I fixed my build error by commenting out line 27 of platforms/ios/MyApp/Plugins/de.appplant.cordova.common.registerusernotificationsettings/AppDelegate+APPRegisterUserNotificationSettings.m

//NSString* const UIApplicationRegisterUserNotificationSettings = @“UIApplicationRegisterUserNotificationSettings”;

0reactions
Linerd00commented, Oct 16, 2015

@t1tlehto Thanks, it works

Read more comments on GitHub >

github_iconTop Results From Across the Web

UILocalNotification | Apple Developer Documentation
An app is responsible for managing the badge number displayed on its icon. For example, if a text-messaging app processes all incoming messages...
Read more >
iOS Local Notification Tutorial - YouTube
My full length Udemy course: Saving Data in Your iOS App Using Core Data: https://bit.ly/30dcIjACheck out my new full length iOS ...
Read more >
iPhone: Incrementing the application badge through a local ...
I've found, implemented & tested a 'workaround' for (apparantly) auto-incrementing the app icon's badge number, that works fine with non-repeating local ...
Read more >
Local Notification badges - Unity Answers
At present I create a local notification to go off after a period of no use of my game. This also sets the...
Read more >
Adding Local Notifications in Your iOS App - AppCoda
Local Notification Badge Number When the app is not running, users see notifications in the following ways, depending on the notification ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found