Skip to content

[firebase-messaging][ios] - TNSFirebaseMessaging is not defined #112

Closed
@VepretskiyD

Description

@VepretskiyD

iOS 15.5 (both simulator and device)

"@nativescript/core": "~8.3.1",
"@nativescript/ios": "~8.3.2",
"@nativescript/firebase-core": "^2.2.6",
"@nativescript/firebase-crashlytics": "^2.2.6",
"@nativescript/firebase-dynamic-links": "^2.2.6",
"@nativescript/firebase-messaging": "^2.2.6",

          const messaging = firebase().messaging()
          messaging
            .requestPermission({
              ios: {
                alert: true,
              },
            })
            .then(() => {
              messaging.registerDeviceForRemoteMessages()
              messaging.showNotificationsWhenInForeground = true
            })

messaging.showNotificationsWhenInForeground get or set throws an error TNSFirebaseMessaging is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions