Closed
Description
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