Skip to content

Error: Uncaught (in promise): Error: -[__NSCFString bytes]: unrecognized selector sent to instance 0x2805a2580 #127

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

Closed
fabiocsm opened this issue Sep 7, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@fabiocsm
Copy link

fabiocsm commented Sep 7, 2022

I'm working updating an NS6 app to NS8, I've changed the firebase-messaging plugin by the firebase-messaging-core version 2.3.4, but now I can't get any token from the iOS app. I'm getting an error when calling MessagingCore.getInstance().getCurrentToken(). I believe it's related to the APNSToken to string conversion.
Unfortunately I don't know Objective-C/Swift to send an PR with the fix.

APNSTokenToString

ERROR Error: Uncaught (in promise): Error: -[__NSCFString bytes]: unrecognized selector sent to instance 0x2805a2580 Error: -[__NSCFString bytes]: unrecognized selector sent to instance 0x2805a2580 at MessagingCore.getAPNSToken (file: node_modules/@nativescript/firebase-messaging-core/index.ios.js:117:0) at file: node_modules/@nativescript/firebase-messaging-core/index.ios.js:113:0 at new ZoneAwarePromise (file: node_modules/zone.js/fesm2015/zone.js:1429:0) at MessagingCore.getCurrentToken (file: node_modules/@nativescript/firebase-messaging-core/index.ios.js:104:0) at file: src/app/services/notification.service.ts:119:44 at Generator.next (<anonymous>) at asyncGeneratorStep (file: node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3:0) at _next (file: node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:25:0) at _ZoneDelegate.invoke (file: node_modules/zone.js/fesm2015/zone.js:372:0) at Object.onInvoke (file: node_modules/@angular/core/fesm2015/core.mjs:26294:0)

@triniwiz triniwiz added the bug Something isn't working label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants