Closed lumayara closed 6 years ago
The error indicates that you did not pass the settings object for the push notifications register
function. Looking at the code you pasted, perhaps you need to fix the parameter of the register
function call from this.pushSettings
to pushSettings
.
Thank you @lini ! It worked :)
I am trying now to make the notifications work with Firebase and keep getting this error:
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
CLI: 4.1.1 Cross-platform modules: 3.4.1 Runtime(s): tns-ios: 4.1.1, tns-android: 4.1.3 Plugin(s): "dependencies": { "@angular/animations": "~5.2.0", "@angular/common": "~5.2.0", "@angular/compiler": "~5.2.0", "@angular/core": "~5.2.0", "@angular/forms": "~5.2.0", "@angular/http": "~5.2.0", "@angular/platform-browser": "~5.2.0", "@angular/platform-browser-dynamic": "~5.2.0", "@angular/router": "~5.2.0", "email-validator": "^1.1.1", "nativescript-angular": "~5.2.0", "nativescript-iqkeyboardmanager": "^1.3.0", "nativescript-modal-datetimepicker": "^1.1.3", "nativescript-oauth": "^2.1.2", "nativescript-platform-css": "^1.6.5", "nativescript-push-notifications": "^1.1.4", "nativescript-theme-core": "~1.0.4", "nativescript-ui-dataform": "^3.5.0", "nativescript-ui-listview": "^3.5.2", "nodeify": "^1.0.1", "reflect-metadata": "~0.1.8", "rxjs": "~5.5.0", "tns-core-modules": "^3.4.1", "zone.js": "~0.8.4" }, "devDependencies": { "babel-traverse": "6.4.5", "babel-types": "6.4.5", "babylon": "6.4.5", "css-font-family": "^1.0.7", "lazy": "1.0.11", "nativescript-dev-typescript": "~0.6.0", "typescript": "~2.6.2" } In my main.ts I have:
Please let me know if it is something I am doing wrong. Thank you!