Firebase push notification iOS in codenameone

15 views
Skip to first unread message

soufiane Maadour

unread,
Oct 15, 2020, 5:46:36 AM10/15/20
to CodenameOne Discussions

i have been configured iOS push notification with Firebase, and i want to:

  • add my existing configuration called in didFinishLaunchingWithOptions(AppDelegate) to native call in my codenameone project.

  • make a native call with codenameOne of overriding fonctions (didReceiveNotificationResponse, willPresentNotification, didReceiveRegistrationToken)existing in Firebase Pods.

And i have one issue with registration notification when i make a native call for configuration firebase in codenameone project and build it, and this is the error returned in Xcode:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIApplication registerForRemoteNotifications]: unrecognized selector sent to class 0x1fccaaed0' terminating with uncaught exception of type NSException

Shai Almog

unread,
Oct 16, 2020, 1:27:40 AM10/16/20
to CodenameOne Discussions
Reply all
Reply to author
Forward
0 new messages